Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created December 9, 2009 15:38
Show Gist options
  • Save bcardarella/252544 to your computer and use it in GitHub Desktop.
Save bcardarella/252544 to your computer and use it in GitHub Desktop.
def assert_not_received(mock, expected_method_name)
matcher = have_received(expected_method_name)
yield(matcher) if block_given?
assert !matcher.matches?(mock), matcher.failure_message
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment