Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2013 15:57
What would you like to do?
Example how to use argument matchers with spies.
def test_spy
d = flexmock(f: :ok)
assert_equal :ok, d.f("Woof",2)
assert_spy_called d, :f, String, Integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment