Don't run pathname tests twice
This commit is contained in:
parent
60fe954bfd
commit
23d9173cb1
@ -3,7 +3,7 @@ require 'tmpdir'
|
|||||||
require 'extend/pathname'
|
require 'extend/pathname'
|
||||||
require 'install_renamed'
|
require 'install_renamed'
|
||||||
|
|
||||||
class PathnameExtensionTests < Homebrew::TestCase
|
module PathnameTestExtension
|
||||||
include FileUtils
|
include FileUtils
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@ -17,6 +17,10 @@ class PathnameExtensionTests < Homebrew::TestCase
|
|||||||
rmtree(@src)
|
rmtree(@src)
|
||||||
rmtree(@dst)
|
rmtree(@dst)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PathnameTests < Homebrew::TestCase
|
||||||
|
include PathnameTestExtension
|
||||||
|
|
||||||
def test_rmdir_if_possible
|
def test_rmdir_if_possible
|
||||||
mkdir_p @dir
|
mkdir_p @dir
|
||||||
@ -115,7 +119,9 @@ class PathnameExtensionTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class PathnameInstallTests < PathnameExtensionTests
|
class PathnameInstallTests < Homebrew::TestCase
|
||||||
|
include PathnameTestExtension
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
(@src+"a.txt").write "This is sample file a."
|
(@src+"a.txt").write "This is sample file a."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user