Sha256: 9ae02c1a4454a0c6ce5d900ccf0a64d8b8e479a3ecad02ffe7dd7ca8028ace37

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 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::AdminConversationsWhitelist do
  let(:client) { Slack::Web::Client.new }
  context 'admin.conversations.whitelist_add' do
    it 'requires channel_id' do
      expect { client.admin_conversations_whitelist_add(group_id: %q[]) }.to raise_error ArgumentError, /Required arguments :channel_id missing/
    end
    it 'requires group_id' do
      expect { client.admin_conversations_whitelist_add(channel_id: %q[]) }.to raise_error ArgumentError, /Required arguments :group_id missing/
    end
  end
  context 'admin.conversations.whitelist_listGroupsLinkedToChannel' do
    it 'requires channel_id' do
      expect { client.admin_conversations_whitelist_listGroupsLinkedToChannel }.to raise_error ArgumentError, /Required arguments :channel_id missing/
    end
  end
  context 'admin.conversations.whitelist_remove' do
    it 'requires channel_id' do
      expect { client.admin_conversations_whitelist_remove(group_id: %q[], team_id: %q[]) }.to raise_error ArgumentError, /Required arguments :channel_id missing/
    end
    it 'requires group_id' do
      expect { client.admin_conversations_whitelist_remove(channel_id: %q[], team_id: %q[]) }.to raise_error ArgumentError, /Required arguments :group_id missing/
    end
    it 'requires team_id' do
      expect { client.admin_conversations_whitelist_remove(channel_id: %q[], group_id: %q[]) }.to raise_error ArgumentError, /Required arguments :team_id missing/
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.16.0 spec/slack/web/api/endpoints/admin_conversations_whitelist_spec.rb