Sha256: f20a7bcb6571d3cc25bb9c1794e3aa3bd805f9075d236db8d60f8d4c002169a6

Contents?: true

Size: 430 Bytes

Versions: 23

Compression:

Stored size: 430 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
      fail '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

23 entries across 23 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 spec/slack/web/api/error_spec.rb
slack-ruby-client-bhe-0.5.4 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.10.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.9.1 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.9.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.8.1 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.8.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.9 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.8 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.7 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.6 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.5 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.4 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.3 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.2 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.1 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.7.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.6.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.5.4 spec/slack/web/api/error_spec.rb
slack-ruby-client-0.5.3 spec/slack/web/api/error_spec.rb