spec/slack/web/api/mixins/channels_spec.rb in slack-ruby-client-0.11.1 vs spec/slack/web/api/mixins/channels_spec.rb in slack-ruby-client-0.12.0
- old
+ new
@@ -8,15 +8,17 @@
end
subject do
klass.new
end
before do
- allow(subject).to receive(:channels_list).and_return(Slack::Messages::Message.new(
- 'channels' => [{
- 'id' => 'CDEADBEEF',
- 'name' => 'general'
- }]
- ))
+ allow(subject).to receive(:channels_list).and_return(
+ Slack::Messages::Message.new(
+ 'channels' => [{
+ 'id' => 'CDEADBEEF',
+ 'name' => 'general'
+ }]
+ )
+ )
end
context '#channels_id' do
it 'leaves channels specified by ID alone' do
expect(subject.channels_id(channel: 'C123456')).to eq('ok' => true, 'channel' => { 'id' => 'C123456' })
end