spec/unit/realtime/connection_spec.rb in ably-0.1.6 vs spec/unit/realtime/connection_spec.rb in ably-0.2.0
- old
+ new
@@ -8,11 +8,11 @@
subject do
Ably::Realtime::Connection.new(client)
end
before do
- expect(EventMachine::Timer).to receive(:new)
- expect(EventMachine).to receive(:next_tick)
+ expect(EventMachine::Timer).to receive(:new) # Connection Manager #initializer
+ expect(EventMachine).to receive(:next_tick) # non_blocking_loop_while for delivery of messages async
end
describe 'callbacks' do
specify 'are supported for valid STATE events' do
state = nil