From 4b6abc7da2c406139279dc73221a4d331b706f9d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 11 Jun 2014 13:03:06 -0500 Subject: Use assert_includes --- Library/Homebrew/test/test_patching.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/test/test_patching.rb') 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 -- cgit v1.2.3