Sha256: 69fa67bfdf0afa9a8c49dbdee4624089b616096087775f775136c0a40f64434d

Contents?: true

Size: 1.74 KB

Versions: 4

Compression:

Stored size: 1.74 KB

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::AdminAuthPolicy do
  let(:client) { Slack::Web::Client.new }
  context 'admin.auth.policy_assignEntities' do
    it 'requires entity_ids' do
      expect { client.admin_auth_policy_assignEntities(entity_type: %q[], policy_name: %q[]) }.to raise_error ArgumentError, /Required arguments :entity_ids missing/
    end
    it 'requires entity_type' do
      expect { client.admin_auth_policy_assignEntities(entity_ids: %q[], policy_name: %q[]) }.to raise_error ArgumentError, /Required arguments :entity_type missing/
    end
    it 'requires policy_name' do
      expect { client.admin_auth_policy_assignEntities(entity_ids: %q[], entity_type: %q[]) }.to raise_error ArgumentError, /Required arguments :policy_name missing/
    end
  end
  context 'admin.auth.policy_getEntities' do
    it 'requires policy_name' do
      expect { client.admin_auth_policy_getEntities }.to raise_error ArgumentError, /Required arguments :policy_name missing/
    end
  end
  context 'admin.auth.policy_removeEntities' do
    it 'requires entity_ids' do
      expect { client.admin_auth_policy_removeEntities(entity_type: %q[], policy_name: %q[]) }.to raise_error ArgumentError, /Required arguments :entity_ids missing/
    end
    it 'requires entity_type' do
      expect { client.admin_auth_policy_removeEntities(entity_ids: %q[], policy_name: %q[]) }.to raise_error ArgumentError, /Required arguments :entity_type missing/
    end
    it 'requires policy_name' do
      expect { client.admin_auth_policy_removeEntities(entity_ids: %q[], entity_type: %q[]) }.to raise_error ArgumentError, /Required arguments :policy_name 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/admin_auth_policy_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/admin_auth_policy_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/admin_auth_policy_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/admin_auth_policy_spec.rb