aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_pathname.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb
index 77a40fa74..5d7441c8e 100644
--- a/Library/Homebrew/test/test_pathname.rb
+++ b/Library/Homebrew/test/test_pathname.rb
@@ -3,7 +3,7 @@ require 'tmpdir'
require 'extend/pathname'
require 'install_renamed'
-class PathnameExtensionTests < Homebrew::TestCase
+module PathnameTestExtension
include FileUtils
def setup
@@ -17,6 +17,10 @@ class PathnameExtensionTests < Homebrew::TestCase
rmtree(@src)
rmtree(@dst)
end
+end
+
+class PathnameTests < Homebrew::TestCase
+ include PathnameTestExtension
def test_rmdir_if_possible
mkdir_p @dir
@@ -115,7 +119,9 @@ class PathnameExtensionTests < Homebrew::TestCase
end
end
-class PathnameInstallTests < PathnameExtensionTests
+class PathnameInstallTests < Homebrew::TestCase
+ include PathnameTestExtension
+
def setup
super
(@src+"a.txt").write "This is sample file a."