From 982e9239b8ba2c2a49ccedec2a108a4580047bcb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 18 Jun 2014 20:32:51 -0500 Subject: Use a custom test class so we can avoid monkeypatching --- 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 9056e8371..0b3f9993d 100644 --- a/Library/Homebrew/test/test_patch.rb +++ b/Library/Homebrew/test/test_patch.rb @@ -1,7 +1,7 @@ require 'testing_env' require 'patch' -class PatchTests < Test::Unit::TestCase +class PatchTests < Homebrew::TestCase def test_create_simple patch = Patch.create(:p2) assert_kind_of ExternalPatch, patch @@ -51,7 +51,7 @@ class PatchTests < Test::Unit::TestCase end end -class LegacyPatchTests < Test::Unit::TestCase +class LegacyPatchTests < Homebrew::TestCase def test_patch_single_string patches = Patch.normalize_legacy_patches("http://example.com/patch.diff") assert_equal 1, patches.length -- cgit v1.2.3