Sha256: aa85a79114f66b8a84a9bfa8a26d8297ae91af45cb7b4e5b6e825544db186b39
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 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::CallsParticipants do let(:client) { Slack::Web::Client.new } context 'calls.participants_add' do it 'requires id' do expect { client.calls_participants_add(users: '[{"slack_id": "U1H77"}, {"external_id": "54321678", "display_name": "External User", "avatar_url": "https://example.com/users/avatar1234.jpg"}]') }.to raise_error ArgumentError, /Required arguments :id missing/ end it 'requires users' do expect { client.calls_participants_add(id: 'R0E69JAIF') }.to raise_error ArgumentError, /Required arguments :users missing/ end end context 'calls.participants_remove' do it 'requires id' do expect { client.calls_participants_remove(users: '[{"slack_id": "U1H77"}, {"external_id": "54321678", "display_name": "External User", "avatar_url": "https://example.com/users/avatar1234.jpg"}]') }.to raise_error ArgumentError, /Required arguments :id missing/ end it 'requires users' do expect { client.calls_participants_remove(id: 'R0E69JAIF') }.to raise_error ArgumentError, /Required arguments :users missing/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.15.1 | spec/slack/web/api/endpoints/calls_participants_spec.rb |
slack-ruby-client-0.15.0 | spec/slack/web/api/endpoints/calls_participants_spec.rb |