Skip to content

Commit 43936ac

Browse files
Jack12816dblock
andauthored
Fixed the broken ruby-head NoMethodError spec. (#2193)
Signed-off-by: Hermann Mayer <[email protected]> Co-authored-by: Daniel Doubrovkine (dB.) <[email protected]>
1 parent 4edf54b commit 43936ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#### Fixes
88

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

spec/grape/api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ def rescue_no_method_error
22722272
subject.rescue_from :all, with: :not_exist_method
22732273
subject.get('/rescue_method') { raise StandardError }
22742274

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

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

0 commit comments

Comments
 (0)