opensupports/tests/user/signup.rb

13 lines
342 B
Ruby

describe '/user/signup' do
it 'should create user in database' do
response = request('/user/signup', {
'email' => 'steve@jobs.com',
'password' => 'custom'
})
userRow = $database.getRow('users', response['data']['userId'])
(userRow['email']).should.equal('steve@jobs.com')
end
end