Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #198 from guidance-guarantee-programme/rails-5-spe…
Browse files Browse the repository at this point in the history
…c-params

Remove Rails 5 request spec params deprecation
  • Loading branch information
searls authored Sep 10, 2016
2 parents d6784ab + c21b514 commit a1f0c64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/jasmine_rails/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ def get_spec_runner(spec_filter, reporters)
app.https!(JasmineRails.force_ssl)
path = JasmineRails.route_path
JasmineRails::OfflineAssetPaths.disabled = false
app.get path, :reporters => reporters, :spec => spec_filter

if Rails::VERSION::MAJOR >= 5
app.get path, :params => { :reporters => reporters, :spec => spec_filter }
else
app.get path, :reporters => reporters, :spec => spec_filter
end

JasmineRails::OfflineAssetPaths.disabled = true
unless app.response.success?
raise "Jasmine runner at '#{path}' returned a #{app.response.status} error: #{app.response.message} \n\n" +
Expand Down

0 comments on commit a1f0c64

Please sign in to comment.