Created
March 2, 2009 07:43
-
-
Save dchelimsky/72662 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spec::Matchers.create :be_a_multiple_of do |actual, expected| | |
match do | |
actual % expected == 0 | |
end | |
end | |
describe 15 do | |
it { should be_a_multiple_of(5) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment