Sha256: 93489d9082c34065086634534cfda963ea3835dab74c71edb7cf2b691cf5da66

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 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::AdminUsersSession do
  let(:client) { Slack::Web::Client.new }
  context 'admin.users.session_clearSettings' do
    it 'requires user_ids' do
      expect { client.admin_users_session_clearSettings }.to raise_error ArgumentError, /Required arguments :user_ids missing/
    end
  end
  context 'admin.users.session_getSettings' do
    it 'requires user_ids' do
      expect { client.admin_users_session_getSettings }.to raise_error ArgumentError, /Required arguments :user_ids missing/
    end
  end
  context 'admin.users.session_invalidate' do
    it 'requires session_id' do
      expect { client.admin_users_session_invalidate(team_id: %q[]) }.to raise_error ArgumentError, /Required arguments :session_id missing/
    end
    it 'requires team_id' do
      expect { client.admin_users_session_invalidate(session_id: %q[]) }.to raise_error ArgumentError, /Required arguments :team_id missing/
    end
  end
  context 'admin.users.session_reset' do
    it 'requires user_id' do
      expect { client.admin_users_session_reset }.to raise_error ArgumentError, /Required arguments :user_id missing/
    end
  end
  context 'admin.users.session_resetBulk' do
    it 'requires user_ids' do
      expect { client.admin_users_session_resetBulk }.to raise_error ArgumentError, /Required arguments :user_ids missing/
    end
  end
  context 'admin.users.session_setSettings' do
    it 'requires user_ids' do
      expect { client.admin_users_session_setSettings }.to raise_error ArgumentError, /Required arguments :user_ids missing/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-2.1.0 spec/slack/web/api/endpoints/admin_users_session_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/admin_users_session_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/admin_users_session_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/admin_users_session_spec.rb