Make the windows test only run on windows for now until it can pass on unix
This commit is contained in:
parent
b92efdfe53
commit
631580fc8e
|
@ -114,7 +114,7 @@ msg
|
|||
end
|
||||
|
||||
def load_root_path!(path=nil)
|
||||
path = Pathname.new(File.expand_path(path || Dir.pwd))
|
||||
path = Pathname.new(File.expand_path(path || Dir.pwd))
|
||||
|
||||
# Stop if we're at the root.
|
||||
return false if path.root?
|
||||
|
|
|
@ -246,9 +246,13 @@ class EnvTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
should "return false if not found on windows-style root" do
|
||||
# Note the escaped back slash
|
||||
path = Pathname.new("C:\\")
|
||||
assert !Vagrant::Env.load_root_path!(path)
|
||||
# TODO: Is there _any_ way to test this on unix machines? The
|
||||
# expand path doesn't work [properly for the test] on unix machines.
|
||||
if RUBY_PLATFORM.downcase.include?("mswin")
|
||||
# Note the escaped back slash
|
||||
path = Pathname.new("C:\\")
|
||||
assert !Vagrant::Env.load_root_path!(path)
|
||||
end
|
||||
end
|
||||
|
||||
should "should set the path for the rootfile" do
|
||||
|
|
Loading…
Reference in New Issue