spec/slack/web/api/mixins/groups_spec.rb in slack-ruby-client-0.11.1 vs spec/slack/web/api/mixins/groups_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(:groups_list).and_return(Slack::Messages::Message.new( - 'groups' => [{ - 'id' => 'CDEADBEEF', - 'name' => 'general' - }] - )) + allow(subject).to receive(:groups_list).and_return( + Slack::Messages::Message.new( + 'groups' => [{ + 'id' => 'CDEADBEEF', + 'name' => 'general' + }] + ) + ) end context '#groups_id' do it 'leaves groups specified by ID alone' do expect(subject.groups_id(channel: 'C123456')).to eq('ok' => true, 'group' => { 'id' => 'C123456' }) end