lib/submodules/ably-ruby/spec/acceptance/rest/channel_spec.rb in ably-rest-0.9.3 vs lib/submodules/ably-ruby/spec/acceptance/rest/channel_spec.rb in ably-rest-1.0.0

- old
+ new

@@ -82,10 +82,10 @@ end end 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 }) } + let(:client_options) { default_options.merge(use_token_auth: true, default_token_params: { capability: capability }) } it 'raises a permission error when publishing' do expect { channel.publish(name, data) }.to raise_error(Ably::Exceptions::UnauthorizedRequest, /not permitted/) end end