spec/slack/web/api/error_spec.rb in slack-ruby-client-0.10.0 vs spec/slack/web/api/error_spec.rb in slack-ruby-client-0.11.0
- old
+ new
@@ -3,10 +3,10 @@
RSpec.describe Slack::Web::Api::Error do
let(:client) { Slack::Web::Client.new }
it 'provides access to the response object', vcr: { cassette_name: 'web/auth_test_error' } do
begin
client.auth_test
- fail 'Expected to receive Slack::Web::Api::Error.'
+ raise 'Expected to receive Slack::Web::Api::Error.'
rescue Slack::Web::Api::Error => e
expect(e.response).to_not be_nil
expect(e.response.status).to eq 200
end
end