Skip to content

Commit 2ecfeb5

Browse files
committed
Fixed the broken ruby-head NoMethodError spec.
Signed-off-by: Hermann Mayer <[email protected]>
1 parent 54f86a9 commit 2ecfeb5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
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
* Your contribution here.
1011

1112
### 1.6.0 (2021/10/04)

spec/grape/api_spec.rb

+1-1
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)