spec/unit/realtime/connection_spec.rb in ably-0.8.7 vs spec/unit/realtime/connection_spec.rb in ably-0.8.8
- old
+ new
@@ -52,10 +52,10 @@
describe '#off_resume' do
it 'registers a callback' do
subject.on_resume { callbacks << true }
additional_proc = proc { raise 'This should not be called' }
- subject.off_resume &additional_proc
+ subject.off_resume(&additional_proc)
subject.resumed
expect(callbacks.count).to eql(1)
end
end
end