spec/acceptance/realtime/client_spec.rb in ably-0.8.3 vs spec/acceptance/realtime/client_spec.rb in ably-0.8.4
- old
+ new
@@ -29,11 +29,11 @@
let(:client_options) { default_options.merge(tls: false, log_level: :none) }
it 'fails to connect because a private key cannot be sent over a non-secure connection' do
connection.on(:connected) { raise 'Should not have connected' }
- connection.on(:failed) do |error|
- expect(error).to be_a(Ably::Exceptions::InsecureRequest)
+ connection.on(:failed) do |connection_state_change|
+ expect(connection_state_change.reason).to be_a(Ably::Exceptions::InsecureRequest)
stop_reactor
end
end
end
end