Sha256: fa4d88859e6165425bdf2e29008a3a0b097a6a69359fe155cc7cfaed2946a65d
Contents?: true
Size: 436 Bytes
Versions: 9
Compression:
Stored size: 436 Bytes
Contents
require 'spec_helper' RSpec.describe Slack::Web::Client do let(:client) { Slack::Web::Client.new } it 'raises a Faraday::ClientError when Slack is unavailable', vcr: { cassette_name: 'web/503_error' } do begin client.auth_test raise 'Expected to receive Faraday::ClientError.' rescue Faraday::ClientError => e expect(e.response).to_not be_nil expect(e.response[:status]).to eq 503 end end end
Version data entries
9 entries across 9 versions & 1 rubygems