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