spec/acceptance/rest/channel_spec.rb in ably-0.8.8 vs spec/acceptance/rest/channel_spec.rb in ably-0.8.9
- old
+ new
@@ -85,10 +85,10 @@
context 'without adequate permissions on the channel' do
let(:capability) { { onlyChannel: ['subscribe'] } }
let(:client_options) { default_options.merge(use_token_auth: true, token_params: { capability: capability }) }
it 'raises a permission error when publishing' do
- expect { channel.publish(name, data) }.to raise_error(Ably::Exceptions::InvalidRequest, /not permitted/)
+ expect { channel.publish(name, data) }.to raise_error(Ably::Exceptions::UnauthorizedRequest, /not permitted/)
end
end
context 'null attributes' do
context 'when name is null' do