diff options
| author | Jack Nagel | 2015-03-26 22:02:14 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-03-26 22:02:14 -0400 |
| commit | 23d9173cb156eb82a094011a4b571fc3153f33b2 (patch) | |
| tree | d1aca3239f57327c4d5ed463b5253a57af4bfd05 /Library | |
| parent | 60fe954bfd6a8fe50ff576cd502ef92c25d41fe6 (diff) | |
| download | brew-23d9173cb156eb82a094011a4b571fc3153f33b2.tar.bz2 | |
Don't run pathname tests twice
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_pathname.rb | 10 |
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." |
