Sha256: 0bf45a57ff74baa420e531a9bfeae1ae038184f0c39286a26499c912dae319cf

Contents?: true

Size: 838 Bytes

Versions: 1

Compression:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.5 spec/slack/web/api/endpoints/apps_permissions_users_spec.rb