Skip to content

Commit 60b8e0b

Browse files
committed
Fix warning message for .raise_error matcher
This addresses the issue where RSpec throws a warning for using the `.raise_error` matcher without a specific error.
1 parent 75157e5 commit 60b8e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
end
136136

137137
it "should fail on bad urls" do
138-
expect { @client.url = "gopher/somekey:somesecret@://api.staging.pusherapp.co://m:8080\apps\87" }.to raise_error
138+
expect { @client.url = "gopher/somekey:somesecret@://api.staging.pusherapp.co://m:8080\apps\87" }.to raise_error(URI::InvalidURIError)
139139
end
140140
end
141141

0 commit comments

Comments
 (0)