spec/unit/realtime/connection_spec.rb in ably-1.1.0 vs spec/unit/realtime/connection_spec.rb in ably-1.1.1
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
require 'shared/protocol_msgbus_behaviour'
describe Ably::Realtime::Connection do
- let(:client) { instance_double('Ably::Realtime::Client', logger: double('logger').as_null_object) }
+ let(:client) { instance_double('Ably::Realtime::Client', logger: double('logger').as_null_object, recover: nil) }
subject do
Ably::Realtime::Connection.new(client, {}).tap do |connection|
connection.__incoming_protocol_msgbus__.unsubscribe
connection.__outgoing_protocol_msgbus__.unsubscribe