Created
August 31, 2013 15:57
-
-
Save jimweirich/6399118 to your computer and use it in GitHub Desktop.
Example how to use argument matchers with spies.
This file contains hidden or 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
def test_spy | |
d = flexmock(f: :ok) | |
assert_equal :ok, d.f("Woof",2) | |
assert_spy_called d, :f, String, Integer | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment