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

Version Path
slack-ruby-client-0.14.4 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.14.3 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.14.2 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.14.1 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.14.0 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.13.1 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.13.0 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.12.0 spec/slack/web/api/errors/service_unavailable_spec.rb
slack-ruby-client-0.11.1 spec/slack/web/api/errors/service_unavailable_spec.rb