aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-22 17:10:06 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-22 17:10:06 +0200
commit237e14bf5870c1fc3ce39f609ca574399800fc3f (patch)
treea8aec4c461ca6e2a6aec4d943e75bec3866543a5
parentRun "rails app:update" (diff)
downloadpackages-5-237e14bf5870c1fc3ce39f609ca574399800fc3f.tar.gz
packages-5-237e14bf5870c1fc3ce39f609ca574399800fc3f.tar.bz2
packages-5-237e14bf5870c1fc3ce39f609ca574399800fc3f.zip
Fix deprecation of positional arguments in controller tests
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--test/controllers/categories_controller_test.rb2
-rw-r--r--test/controllers/useflags_controller_test.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/controllers/categories_controller_test.rb b/test/controllers/categories_controller_test.rb
index 994db38..2b6e287 100644
--- a/test/controllers/categories_controller_test.rb
+++ b/test/controllers/categories_controller_test.rb
@@ -8,7 +8,7 @@ class CategoriesControllerTest < ActionController::TestCase
end
test "should show category" do
- get :show, id: 'virtual'
+ get :show, params: { id: 'virtual' }
assert_response :success
end
end
diff --git a/test/controllers/useflags_controller_test.rb b/test/controllers/useflags_controller_test.rb
index 7adfca9..f6b2cc3 100644
--- a/test/controllers/useflags_controller_test.rb
+++ b/test/controllers/useflags_controller_test.rb
@@ -7,12 +7,12 @@ class UseflagsControllerTest < ActionController::TestCase
end
test "should get show" do
- get :show, id: 'test'
+ get :show, params: { id: 'test' }
assert_response :success
end
test "should get search" do
- get :search, q: 'test'
+ get :search, params: { q: 'test' }
assert_response :success
end