spec/slack/web/api/mixins/groups_spec.rb in slack-ruby-client-0.8.1 vs spec/slack/web/api/mixins/groups_spec.rb in slack-ruby-client-0.9.0
- old
+ new
@@ -23,9 +23,9 @@
end
it 'translates a channel that starts with a #' do
expect(subject.groups_id(channel: '#general')).to eq('ok' => true, 'group' => { 'id' => 'CDEADBEEF' })
end
it 'fails with an exception' do
- expect { subject.groups_id(channel: '#invalid') }.to raise_error Slack::Web::Api::Error, 'channel_not_found'
+ expect { subject.groups_id(channel: '#invalid') }.to raise_error Slack::Web::Api::Errors::SlackError, 'channel_not_found'
end
end
end