Closed jaredbeck closed 7 years ago
This patch includes two changes to mocha stubs:
a.stubs(:x).once a.stubs(:x).twice A.any_instance.stubs(:x).once A.any_instance.stubs(:x).twice
Now, they are converted as follows:
expect(a).to(receive(:x).once) expect(a).to(receive(:x).twice) expect_any_instance_of(A).to(receive(:x).once) expect_any_instance_of(A).to(receive(:x).twice)
allow
expect
This patch includes two changes to mocha stubs:
Now, they are converted as follows:
allow
. Going forward, they will be converted to rspecexpect
.