# This file was auto-generated by lib/tasks/web.rake require 'spec_helper' RSpec.describe Slack::Web::Api::Endpoints::Conversations do let(:client) { Slack::Web::Client.new } context 'conversations_archive' do it 'requires channel' do expect { client.conversations_archive }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_close' do it 'requires channel' do expect { client.conversations_close }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_create' do it 'requires name' do expect { client.conversations_create }.to raise_error ArgumentError, /Required arguments :name missing/ end end context 'conversations_history' do it 'requires channel' do expect { client.conversations_history }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_info' do it 'requires channel' do expect { client.conversations_info }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_invite' do it 'requires channel' do expect { client.conversations_invite(users: 'W1234567890,U2345678901,U3456789012') }.to raise_error ArgumentError, /Required arguments :channel missing/ end it 'requires users' do expect { client.conversations_invite(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :users missing/ end end context 'conversations_join' do it 'requires channel' do expect { client.conversations_join }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_kick' do it 'requires channel' do expect { client.conversations_kick(user: 'W1234567890') }.to raise_error ArgumentError, /Required arguments :channel missing/ end it 'requires user' do expect { client.conversations_kick(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :user missing/ end end context 'conversations_leave' do it 'requires channel' do expect { client.conversations_leave }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_members' do it 'requires channel' do expect { client.conversations_members }.to raise_error ArgumentError, /Required arguments :channel missing/ end end context 'conversations_rename' do it 'requires channel' do expect { client.conversations_rename(name: ' ') }.to raise_error ArgumentError, /Required arguments :channel missing/ end it 'requires name' do expect { client.conversations_rename(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :name missing/ end end context 'conversations_replies' do it 'requires channel' do expect { client.conversations_replies(ts: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/ end it 'requires ts' do expect { client.conversations_replies(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :ts missing/ end end context 'conversations_setPurpose' do it 'requires channel' do expect { client.conversations_setPurpose(purpose: 'My More Special Purpose') }.to raise_error ArgumentError, /Required arguments :channel missing/ end it 'requires purpose' do expect { client.conversations_setPurpose(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :purpose missing/ end end context 'conversations_setTopic' do it 'requires channel' do expect { client.conversations_setTopic(topic: 'Apply topically for best effects') }.to raise_error ArgumentError, /Required arguments :channel missing/ end it 'requires topic' do expect { client.conversations_setTopic(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :topic missing/ end end context 'conversations_unarchive' do it 'requires channel' do expect { client.conversations_unarchive }.to raise_error ArgumentError, /Required arguments :channel missing/ end end end