Sha256: d4c6805f50aefce8ebd2e2dc90a3238b4d5eaa724bc82a4f622ce00663946050

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 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[T1234]) }.to raise_error ArgumentError, /Required arguments :session_id missing/
    end
    it 'requires team_id' do
      expect { client.admin_users_session_invalidate(session_id: %q[12345]) }.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

3 entries across 3 versions & 1 rubygems

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