mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
More fixed tests
This commit is contained in:
parent
efee4976b0
commit
149dbe7e27
4 changed files with 16 additions and 15 deletions
|
|
@ -71,7 +71,7 @@ class UsersXmlApiTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
barracuda1 = User.where(:login => 'barracuda').first
|
||||
assert_not_nil barracuda1, "expected user barracuda to be created"
|
||||
johnny2 = User.authenticate('barracuda','johnny')
|
||||
barracuda2 = User.authenticate('barracuda','johnny')
|
||||
assert_not_nil barracuda2, "expected user barracuda to be authenticated"
|
||||
end
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ class UsersXmlApiTest < ActionDispatch::IntegrationTest
|
|||
get '/users.xml', params: {}, headers: basic_auth_headers()
|
||||
assert_response :success
|
||||
assert_select 'users' do
|
||||
assert_select 'user', count: 4
|
||||
assert_select 'user', count: 5
|
||||
end
|
||||
assert_select 'password', false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue