Sha256: 5c20cef5b4e6300b18a31a271bfbf61fd5959e5d0370367a1c1168a4c2e95d00

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::Auth do
  let(:client) { Slack::Web::Client.new }
  context 'without auth', vcr: { cassette_name: 'web/auth_test_error' } do
    it 'fails with an exception' do
      expect { client.auth_test }.to raise_error Slack::Web::Api::Error
    end
  end
  context 'with auth', vcr: { cassette_name: 'web/auth_test_success' } do
    it 'succeeds' do
      expect { client.auth_test }.to_not raise_error
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.4.0 spec/slack/web/api/endpoints/auth_spec.rb
slack-ruby-client-0.3.1 spec/slack/web/api/endpoints/auth_spec.rb
slack-ruby-client-0.3.0 spec/slack/web/api/endpoints/auth_spec.rb
slack-ruby-client-0.2.1 spec/slack/web/api/endpoints/auth_spec.rb
slack-ruby-client-0.2.0 spec/slack/web/api/endpoints/auth_spec.rb
slack-ruby-client-0.1.0 spec/slack/web/api/endpoints/auth_spec.rb