Sha256: 3f6b90819330e671534c0b01ebc7f9d16a0b5785b0eeabae512a1a8c0ccd9dcb

Contents?: true

Size: 801 Bytes

Versions: 14

Compression:

Stored size: 801 Bytes

Contents

# This file was auto-generated by lib/tasks/web.rake

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::Oauth do
  let(:client) { Slack::Web::Client.new }
  context 'oauth_access' do
    it 'requires client_id' do
      expect { client.oauth_access(client_secret: '33fea0113f5b1', code: 'ccdaa72ad') }.to raise_error ArgumentError, /Required arguments :client_id missing/
    end
    it 'requires client_secret' do
      expect { client.oauth_access(client_id: '4b39e9-752c4', code: 'ccdaa72ad') }.to raise_error ArgumentError, /Required arguments :client_secret missing/
    end
    it 'requires code' do
      expect { client.oauth_access(client_id: '4b39e9-752c4', client_secret: '33fea0113f5b1') }.to raise_error ArgumentError, /Required arguments :code missing/
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
slack-ruby-client-0.9.0 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.8.1 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.8.0 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.9 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.8 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.7 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.6 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.5 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.4 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.3 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.2 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.1 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.7.0 spec/slack/web/api/endpoints/oauth_spec.rb
slack-ruby-client-0.6.0 spec/slack/web/api/endpoints/oauth_spec.rb