Created
April 14, 2009 00:29
-
-
Save NigelThorne/94849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this fails "Mock 'x' expected :a with (any args) once, but received it twice" | |
x = mock("x") | |
x.should_receive(:a).ordered | |
x.should_receive(:b).ordered | |
x.should_receive(:a).ordered | |
x.a | |
x.b | |
x.a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment