Skip to content

Instantly share code, notes, and snippets.

@fables-tales
Created April 23, 2014 20:32
Show Gist options
  • Save fables-tales/11231312 to your computer and use it in GitHub Desktop.
Save fables-tales/11231312 to your computer and use it in GitHub Desktop.
RSpec::Matchers.define :be_a_multiple_of do |expected|
match do |actual|
expcted = expected + "hi!"
RSpec::Matchers::BuiltIn::Equal.new(expected).send(:match, expected, actual)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment