The following code snippet works as expected:
Object.any_instance.should_receive(:subscribe)
But when using the new rspec wait, it does not work:
expect(Object.any_instance).to receive(:subscribe)
Mistake:
expected: 1 time with any arguments received: 0 times with any arguments
How can I do this work pending () to receive?
rspec rspec-rails rspec2
Calin Jul 10 '13 at 9:11 2013-07-10 09:11
source share