Commit c1b2bb18 by liyijie

fix rspec send params

parent 846c9d86
...@@ -221,7 +221,7 @@ module RSpec ...@@ -221,7 +221,7 @@ module RSpec
# Run the request # Run the request
params = body || form_data params = body || form_data
if ::Rails::VERSION::MAJOR >= 5 if ::Rails::VERSION::MAJOR >= 5
self.send(method, path, {params: params, headers: headers, env: env}) self.send(method, path, **{params: params, headers: headers, env: env})
else else
self.send(method, path, params, headers.merge(env)) self.send(method, path, params, headers.merge(env))
end end
......
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