Sha256: 944448619c8e1eb7ba1c4c8d6144c2ce8bc491b9dad61f1fca64830c23d1361f
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 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::Oauth do let(:client) { Slack::Web::Client.new } context 'oauth_token' do it 'requires client_id' do expect { client.oauth_token(client_secret: %q[33fea0113f5b1], code: %q[ccdaa72ad]) }.to raise_error ArgumentError, /Required arguments :client_id missing/ end it 'requires client_secret' do expect { client.oauth_token(client_id: %q[4b39e9-752c4], code: %q[ccdaa72ad]) }.to raise_error ArgumentError, /Required arguments :client_secret missing/ end it 'requires code' do expect { client.oauth_token(client_id: %q[4b39e9-752c4], client_secret: %q[33fea0113f5b1]) }.to raise_error ArgumentError, /Required arguments :code missing/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.17.0 | spec/slack/web/api/endpoints/oauth_spec.rb |
slack-ruby-client-0.16.0 | spec/slack/web/api/endpoints/oauth_spec.rb |