mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40: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
|
|
@ -16,13 +16,13 @@ class FeedlistControllerTest < ActionController::TestCase
|
|||
|
||||
def test_get_feeds_for_context_using_xhr
|
||||
login_as(:admin_user)
|
||||
xhr :get, :get_feeds_for_context, :context_id => contexts(:errand).id
|
||||
get :get_feeds_for_context, xhr: true, params: { :context_id => contexts(:errand).id }
|
||||
assert_response 200
|
||||
end
|
||||
|
||||
def test_get_feeds_for_project_using_xhr
|
||||
login_as(:admin_user)
|
||||
xhr :get, :get_feeds_for_project, :project_id => projects(:timemachine).id
|
||||
get :get_feeds_for_project, xhr: true, params: { :project_id => projects(:timemachine).id }
|
||||
assert_response 200
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue