spec/acceptance/realtime/auth_spec.rb in ably-1.1.1 vs spec/acceptance/realtime/auth_spec.rb in ably-1.1.2

- old
+ new

@@ -1137,10 +1137,11 @@ end context 'when credentials are invalid' do let(:key_secret) { 'invalid' } let(:token) { Faraday.get("#{auth_url}?keyName=#{key_name}&keySecret=#{key_secret}").body } + let(:client_options) { { token: token, environment: environment, protocol: protocol, log_level: :none } } it 'fails with an invalid signature error' do client.connection.once(:disconnected) do |state_change| expect(state_change.reason.message.match(/invalid signature/i)).to_not be_nil expect(state_change.reason.code).to eql(40144) @@ -1237,10 +1238,10 @@ let(:auth_callback) do lambda do |token_params| Faraday.get("#{auth_url}?keyName=#{key_name}&keySecret=#{key_secret}&capability=#{URI.escape(basic_capability)}").body end end - let(:client_options) { default_options.merge(auth_callback: auth_callback) } + let(:client_options) { default_options.merge(auth_callback: auth_callback, log_level: :error) } it 'client fails to publish to a channel with subscribe-only capability and publishes successfully on a channel with permissions' do client.connection.once(:connected) do forbidden_channel = client.channels.get(channel_name) allowed_channel = client.channels.get(channel_with_publish_permissions)