Skip to content

Commit 2a79c63

Browse files
authored
Merge pull request #136 from bastelfreak/error
rspec: fix faraday error matching
2 parents b4432ce + 8988259 commit 2a79c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/forge/connection_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
expect {
9090
subject.get('/error')
91-
}.to raise_error(Faraday::ServerError, "the server responded with status 503")
91+
}.to raise_error(Faraday::ServerError, /the server responded with status 503/)
9292
end
9393

9494
context 'when an authorization value is provided' do

0 commit comments

Comments
 (0)