Sha256: 10b2827c52579f830a91986710674c2c550fb71c220f5d410e8a2d80b7ba5067

Contents?: true

Size: 427 Bytes

Versions: 7

Compression:

Stored size: 427 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
    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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-2.1.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/error_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/error_spec.rb