Sha256: 78ea78bd26099d3fffa344b7c40738b42aeb65e6a51eb57b83756df0c38afec8

Contents?: true

Size: 470 Bytes

Versions: 10

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

RSpec.describe Slack::Web::Api::Errors::SlackError 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::Errors::SlackError.'
    rescue Slack::Web::Api::Errors::SlackError => 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/errors/slack_error_spec.rb
slack-ruby-client-0.14.3 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.14.2 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.14.1 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.14.0 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.13.1 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.13.0 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.12.0 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.11.1 spec/slack/web/api/errors/slack_error_spec.rb
slack-ruby-client-0.11.0 spec/slack/web/api/errors/slack_error_spec.rb