Sha256: 7525fdfd6f3b5f926d46391bcf4df073be8d3cdfd668df822be021bb983bc034

Contents?: true

Size: 822 Bytes

Versions: 5

Compression:

Stored size: 822 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: %q[U060R4BJ4,U060RNRCZ]) }.to raise_error ArgumentError, /Required arguments :usergroup missing/
    end
    it 'requires users' do
      expect { client.usergroups_users_update(usergroup: %q[S0604QSJC]) }.to raise_error ArgumentError, /Required arguments :users missing/
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-0.17.0 spec/slack/web/api/endpoints/usergroups_users_spec.rb
slack-ruby-client-0.16.0 spec/slack/web/api/endpoints/usergroups_users_spec.rb