spec/acceptance/realtime/stats_spec.rb in ably-0.7.2 vs spec/acceptance/realtime/stats_spec.rb in ably-0.7.4

- old
+ new

@@ -12,11 +12,11 @@ expect(stats).to be_a(Ably::Models::PaginatedResource) stop_reactor end end - it 'should return a Deferrable object' do - expect(client.stats).to be_a(EventMachine::Deferrable) + it 'returns a SafeDeferrable that catches exceptions in callbacks and logs them' do + expect(client.stats).to be_a(Ably::Util::SafeDeferrable) stop_reactor end end end end