diff options
| author | Jack Nagel | 2014-06-11 13:03:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-18 20:34:10 -0500 |
| commit | 4b6abc7da2c406139279dc73221a4d331b706f9d (patch) | |
| tree | 3cd395cb241cb21bdc90fb000b63474a927338a2 /Library/Homebrew/test/test_patching.rb | |
| parent | 58a75b0f71924a73085c61cd3dc48abe04aa50c1 (diff) | |
| download | brew-4b6abc7da2c406139279dc73221a4d331b706f9d.tar.bz2 | |
Use assert_includes
Diffstat (limited to 'Library/Homebrew/test/test_patching.rb')
| -rw-r--r-- | Library/Homebrew/test/test_patching.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb index cb70e5e4d..9d187c400 100644 --- a/Library/Homebrew/test/test_patching.rb +++ b/Library/Homebrew/test/test_patching.rb @@ -16,8 +16,8 @@ class PatchingTests < Homebrew::TestCase def assert_patched(path) s = File.read(path) - assert !s.include?("NOOP"), "File was unpatched." - assert s.include?("ABCD"), "File was not patched as expected." + refute_includes s, "NOOP", "#{path} was not patched as expected" + assert_includes s, "ABCD", "#{path} was not patched as expected" end def test_single_patch |
