Skip to content

Commit

Permalink
Fixed the broken ruby-head NoMethodError spec. (#2193)
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>

Co-authored-by: Daniel Doubrovkine (dB.) <[email protected]>
  • Loading branch information
Jack12816 and dblock authored Oct 4, 2021
1 parent 4edf54b commit 43936ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#### Fixes

* [#2193](https://github.com/ruby-grape/grape/pull/2193): Fixed the broken ruby-head NoMethodError spec - [@Jack12816](https://github.com/Jack12816).
* [#2192](https://github.com/ruby-grape/grape/pull/2192): Memoize the result of Grape::Middleware::Base#response - [@Jack12816](https://github.com/Jack12816).
* Your contribution here.

Expand Down
2 changes: 1 addition & 1 deletion spec/grape/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2272,7 +2272,7 @@ def rescue_no_method_error
subject.rescue_from :all, with: :not_exist_method
subject.get('/rescue_method') { raise StandardError }

expect { get '/rescue_method' }.to raise_error(NoMethodError, 'undefined method `not_exist_method\'')
expect { get '/rescue_method' }.to raise_error(NoMethodError, /^undefined method `not_exist_method'/)
end

it 'correctly chooses exception handler if :all handler is specified' do
Expand Down

0 comments on commit 43936ac

Please sign in to comment.