Sha256: 8c6d800b9f2094e4d57f2d4d3ac4367ca3d39a262f17e3ba96bc3a04900066e5
Contents?: true
Size: 1.74 KB
Versions: 5
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::AdminUsergroups do let(:client) { Slack::Web::Client.new } context 'admin.usergroups_addChannels' do it 'requires channel_ids' do expect { client.admin_usergroups_addChannels(usergroup_id: %q[S00000000]) }.to raise_error ArgumentError, /Required arguments :channel_ids missing/ end it 'requires usergroup_id' do expect { client.admin_usergroups_addChannels(channel_ids: %q[C00000000,C00000001]) }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/ end end context 'admin.usergroups_addTeams' do it 'requires team_ids' do expect { client.admin_usergroups_addTeams(usergroup_id: %q[S12345678]) }.to raise_error ArgumentError, /Required arguments :team_ids missing/ end it 'requires usergroup_id' do expect { client.admin_usergroups_addTeams(team_ids: %q[T12345678,T98765432]) }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/ end end context 'admin.usergroups_listChannels' do it 'requires usergroup_id' do expect { client.admin_usergroups_listChannels }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/ end end context 'admin.usergroups_removeChannels' do it 'requires channel_ids' do expect { client.admin_usergroups_removeChannels(usergroup_id: %q[S00000000]) }.to raise_error ArgumentError, /Required arguments :channel_ids missing/ end it 'requires usergroup_id' do expect { client.admin_usergroups_removeChannels(channel_ids: %q[C00000000,C00000001]) }.to raise_error ArgumentError, /Required arguments :usergroup_id missing/ end end end
Version data entries
5 entries across 5 versions & 1 rubygems