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