Created
February 21, 2011 05:13
-
-
Save ongaeshi/836681 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
| def assert_diff_files(file1, file2) | |
| unless (IO.read(file1) == IO.read(file2)) | |
| puts `diff -c #{file1} #{file2}` | |
| assert_equal true, false | |
| else | |
| assert_equal true, true | |
| end | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment