summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 06:19:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 06:19:52 +0000
commitc364e6ee9b2efd7749bf6b0ba10b201e786c8797 (patch)
tree8aa736e5a4a0f5e9439538b5af8da9698962488c /test/test_helper.rb
parentc55dd52b07387b63767b586c2b3d8263b32f1dad (diff)
downloadredmine-c364e6ee9b2efd7749bf6b0ba10b201e786c8797.tar.gz
redmine-c364e6ee9b2efd7749bf6b0ba10b201e786c8797.zip
Pass parameters with :params in controller tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15664 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 0da05394a..8b7076bf1 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -278,6 +278,14 @@ module Redmine
end
class ControllerTest < ActionController::TestCase
+ def process(method, path, parameters={}, options={})
+ if parameters.key?(:params)
+ raise ArgumentError if options.present?
+ super method, path, parameters[:params], parameters.except(:params)
+ else
+ super
+ end
+ end
end
class IntegrationTest < ActionDispatch::IntegrationTest