aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_patch.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-11 12:21:03 -0500
committerJack Nagel2014-06-18 20:34:09 -0500
commit58a75b0f71924a73085c61cd3dc48abe04aa50c1 (patch)
treeeaf6e25a42753192a459831dbb2acf18c51e6c50 /Library/Homebrew/test/test_patch.rb
parent06305e621199409f954b34166194e18e610d4e89 (diff)
downloadbrew-58a75b0f71924a73085c61cd3dc48abe04aa50c1.tar.bz2
Use assert_predicate
Diffstat (limited to 'Library/Homebrew/test/test_patch.rb')
-rw-r--r--Library/Homebrew/test/test_patch.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_patch.rb b/Library/Homebrew/test/test_patch.rb
index 0b3f9993d..23ee84565 100644
--- a/Library/Homebrew/test/test_patch.rb
+++ b/Library/Homebrew/test/test_patch.rb
@@ -5,14 +5,14 @@ class PatchTests < Homebrew::TestCase
def test_create_simple
patch = Patch.create(:p2)
assert_kind_of ExternalPatch, patch
- assert patch.external?
+ assert_predicate patch, :external?
assert_equal :p2, patch.strip
end
def test_create_io
patch = Patch.create(:p0, StringIO.new("foo"))
assert_kind_of IOPatch, patch
- assert !patch.external?
+ refute_predicate patch, :external?
assert_equal :p0, patch.strip
end