Created
September 29, 2013 17:38
-
-
Save kerrizor/6754701 to your computer and use it in GitHub Desktop.
This file contains 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
class MiniTest::Unit::TestCase | |
def assert_change(block) | |
before = block.call | |
yield | |
refute_equal before, block.call | |
end | |
def refute_change(block) | |
before = block.call | |
yield | |
assert_equal before, block.call | |
end | |
end |
Author
kerrizor
commented
Sep 29, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment