spec/slack/web/api/endpoints/oauth_v2_spec.rb in slack-ruby-client-0.17.0 vs spec/slack/web/api/endpoints/oauth_v2_spec.rb in slack-ruby-client-1.0.0
- old
+ new
@@ -3,11 +3,14 @@
require 'spec_helper'
RSpec.describe Slack::Web::Api::Endpoints::OauthV2 do
let(:client) { Slack::Web::Client.new }
- context 'oauth.v2_access' do
- it 'requires code' do
- expect { client.oauth_v2_access }.to raise_error ArgumentError, /Required arguments :code missing/
+ 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