Commit 7c6fe4da authored by jplang's avatar jplang

Pass parameters with :params in controller tests.

git-svn-id: https://svn.redmine.org/redmine/trunk@15664 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f66019a9
This diff is collapsed.
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment