spec/slack/web/api/endpoints/mpim_spec.rb in slack-ruby-client-0.7.7 vs spec/slack/web/api/endpoints/mpim_spec.rb in slack-ruby-client-0.7.8
- old
+ new
@@ -25,6 +25,14 @@
context 'mpim_open' do
it 'requires users' do
expect { client.mpim_open }.to raise_error ArgumentError, /Required arguments :users missing/
end
end
+ context 'mpim_replies' do
+ it 'requires channel' do
+ expect { client.mpim_replies(thread_ts: '1234567890.123456') }.to raise_error ArgumentError, /Required arguments :channel missing/
+ end
+ it 'requires thread_ts' do
+ expect { client.mpim_replies(channel: 'C1234567890') }.to raise_error ArgumentError, /Required arguments :thread_ts missing/
+ end
+ end
end