Sha256: ef56b2ee2dc45891f5366098e3b9f591e773a5ddee360094be1bae715a6a590c

Contents?: true

Size: 818 Bytes

Versions: 4

Compression:

Stored size: 818 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::UsergroupsUsers do
  let(:client) { Slack::Web::Client.new }
  context 'usergroups.users_list' do
    it 'requires usergroup' do
      expect { client.usergroups_users_list }.to raise_error ArgumentError, /Required arguments :usergroup missing/
    end
  end
  context 'usergroups.users_update' do
    it 'requires usergroup' do
      expect { client.usergroups_users_update(users: 'U060R4BJ4,U060RNRCZ') }.to raise_error ArgumentError, /Required arguments :usergroup missing/
    end
    it 'requires users' do
      expect { client.usergroups_users_update(usergroup: 'S0604QSJC') }.to raise_error ArgumentError, /Required arguments :users missing/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-0.15.0 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-0.14.6 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-0.14.5 spec/slack/web/api/endpoints/usergroups_users_spec.rb