Skip to content

Commit

Permalink
Merge pull request #2722 from newrelic/stole_my_broccoli_casserole_re…
Browse files Browse the repository at this point in the history
…cipe

CI: Grape v2.1.0 related updates
  • Loading branch information
fallwith authored Jun 17, 2024
2 parents ee43ac1 + 6c9cf26 commit 9e5715d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/multiverse/suites/grape/Envfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
instrumentation_methods :chain, :prepend

GRAPE_VERSIONS = [
[nil, 2.6],
[nil, 2.7],
['2.0.0', 2.6],
['1.6', 2.5],
['1.5.3', 2.4, 3.0]
]
Expand Down
3 changes: 2 additions & 1 deletion test/multiverse/suites/grape/grape_test_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class GrapeTestApi < Grape::API

resource :grape_ape_fail_rescue do
rescue_from :all do |e|
error_response({message: "rescued from #{e.class.name}"})
err = {message: "rescued from #{e.class.name}"}
Gem::Version.new(Grape::VERSION) >= Gem::Version.new('2.1.0') ? error!(err) : error_response(err)
end

post do
Expand Down

0 comments on commit 9e5715d

Please sign in to comment.