Skip to content

Instantly share code, notes, and snippets.

@jimweirich
Created August 31, 2013 15:57
Show Gist options
  • Save jimweirich/6399118 to your computer and use it in GitHub Desktop.
Save jimweirich/6399118 to your computer and use it in GitHub Desktop.
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