Use the keyword args syntax for controller actions

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
Matt Rogers 2018-11-03 11:00:27 -05:00
parent 755a7a1b80
commit 2f85a42f91
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
19 changed files with 258 additions and 241 deletions

View file

@ -13,7 +13,7 @@ class SearchControllerTest < ActionController::TestCase
def test_search_for_todo_with_tag
login_as :admin_user
post :results, :search => "gates"
post :results, params: { :search => "gates" }
assert_response 200
assert_equal 3, assigns['count'], "should have found 3 todos"
end