mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Use the keyword args syntax for controller actions
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
755a7a1b80
commit
2f85a42f91
19 changed files with 258 additions and 241 deletions
|
|
@ -67,7 +67,7 @@ class UsersXmlApiTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_get_users_as_xml
|
||||
get '/users.xml', {}, basic_auth_headers()
|
||||
get '/users.xml', params: {}, headers: basic_auth_headers()
|
||||
assert_response :success
|
||||
assert_select 'users' do
|
||||
assert_select 'user', count: 4
|
||||
|
|
@ -76,7 +76,7 @@ class UsersXmlApiTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
def test_get_user_as_xml
|
||||
get "/users/#{users(:other_user).id}.xml", {}, basic_auth_headers()
|
||||
get "/users/#{users(:other_user).id}.xml", params: {}, headers: basic_auth_headers()
|
||||
assert_response :success
|
||||
assert_select 'user'
|
||||
assert_select 'password', false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue