Sha256: a89c4363422e9e6c158ee2c9ae7cbb06709adfb7cb9854702fecf9e9976060a8

Contents?: true

Size: 455 Bytes

Versions: 6

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true
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 described_class => e
      expect(e.response).not_to be_nil
      expect(e.response.status).to eq 200
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.16.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.15.1 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.15.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.14.6 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.14.5 spec/slack/web/api/error_spec.rb