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
commit07535c52e7a314a880933e489ea80fd3ccc43af2 (patch)
tree50c2514863f51f40eaf5c0424fc4592ec195e527 /Library/Homebrew/test/test_patch.rb
parent16884ea08e115723ca595bf29389cddef54f9c63 (diff)
downloadhomebrew-07535c52e7a314a880933e489ea80fd3ccc43af2.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