Sha256: 03db015e7d0602680b7ca9e67530b1df1686843c43504056f63d47ec5037731a

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::OauthV2 do
  let(:client) { Slack::Web::Client.new }
  context 'oauth.v2_exchange' do
    it 'requires client_id' do
      expect { client.oauth_v2_exchange(client_secret: %q[]) }.to raise_error ArgumentError, /Required arguments :client_id missing/
    end
    it 'requires client_secret' do
      expect { client.oauth_v2_exchange(client_id: %q[]) }.to raise_error ArgumentError, /Required arguments :client_secret missing/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-2.1.0 spec/slack/web/api/endpoints/oauth_v2_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/oauth_v2_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/oauth_v2_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/oauth_v2_spec.rb