diff options
| author | Jack Nagel | 2014-06-11 13:03:06 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-06-18 20:34:10 -0500 | 
| commit | 99b24dff4c2020170cc7c9086e2c33a3d07519c7 (patch) | |
| tree | 27361507a739c63306784394b8bf528e36d00311 /Library/Homebrew/test/test_patching.rb | |
| parent | 07535c52e7a314a880933e489ea80fd3ccc43af2 (diff) | |
| download | homebrew-99b24dff4c2020170cc7c9086e2c33a3d07519c7.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 | 
