Sha256: 20ca86eed0dff564824427d2769315a8b011d865bf15e6926494742de1c25dcc

Contents?: true

Size: 1.6 KB

Versions: 9

Compression:

Stored size: 1.6 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::AdminConversationsRestrictaccess do
  let(:client) { Slack::Web::Client.new }
  context 'admin.conversations.restrictAccess_addGroup' do
    it 'requires channel_id' do
      expect { client.admin_conversations_restrictAccess_addGroup(group_id: %q[]) }.to raise_error ArgumentError, /Required arguments :channel_id missing/
    end
    it 'requires group_id' do
      expect { client.admin_conversations_restrictAccess_addGroup(channel_id: %q[]) }.to raise_error ArgumentError, /Required arguments :group_id missing/
    end
  end
  context 'admin.conversations.restrictAccess_listGroups' do
    it 'requires channel_id' do
      expect { client.admin_conversations_restrictAccess_listGroups }.to raise_error ArgumentError, /Required arguments :channel_id missing/
    end
  end
  context 'admin.conversations.restrictAccess_removeGroup' do
    it 'requires channel_id' do
      expect { client.admin_conversations_restrictAccess_removeGroup(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_restrictAccess_removeGroup(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_restrictAccess_removeGroup(channel_id: %q[], group_id: %q[]) }.to raise_error ArgumentError, /Required arguments :team_id missing/
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-2.1.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-0.17.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb
slack-ruby-client-0.16.0 spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb