Skip to content

Instantly share code, notes, and snippets.

Embed
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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.