Sha256: e02ce1a57ddafce9d16fb125d12290c9c257dfe56ab163754d9ac6c77e15bf90

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 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::AppsPermissions do
  let(:client) { Slack::Web::Client.new }
  context 'apps.permissions_request' do
    it 'requires scopes' do
      expect { client.apps_permissions_request(trigger_id: '') }.to raise_error ArgumentError, /Required arguments :scopes missing/
    end
    it 'requires trigger_id' do
      expect { client.apps_permissions_request(scopes: '') }.to raise_error ArgumentError, /Required arguments :trigger_id missing/
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 spec/slack/web/api/endpoints/apps_permissions_spec.rb
slack-ruby-client-0.15.0 spec/slack/web/api/endpoints/apps_permissions_spec.rb
slack-ruby-client-0.14.6 spec/slack/web/api/endpoints/apps_permissions_spec.rb