spec/slack/web/api/mixins/channels_spec.rb in slack-ruby-client-0.15.0 vs spec/slack/web/api/mixins/channels_spec.rb in slack-ruby-client-0.15.1
- old
+ new
@@ -11,10 +11,10 @@
include Slack::Web::Api::Mixins::Channels
end
end
before do
- allow(channels).to receive(:channels_list).and_return(
+ allow(channels).to receive(:channels_list).and_yield(
Slack::Messages::Message.new(
'channels' => [{
'id' => 'CDEADBEEF',
'name' => 'general'
}]