Skip to content

Instantly share code, notes, and snippets.

@ojiry
Created April 25, 2012 14:01
Show Gist options
  • Save ojiry/2489927 to your computer and use it in GitHub Desktop.
Save ojiry/2489927 to your computer and use it in GitHub Desktop.
RSpec::Matchers.define :be_a_multiple_of do |expected|
match do |actual|
actual % expected == 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment