Sha256: 2b79edb6b3859dbe10690c55ee3ddc36efba96c3c92ba2a2755d50fb981edcc5

Contents?: true

Size: 431 Bytes

Versions: 10

Compression:

Stored size: 431 Bytes

Contents

require 'spec_helper'

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
      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
end

Version data entries

10 entries across 10 versions & 1 rubygems

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