core: add test for fs_real_path on Windows

This commit is contained in:
Mitchell Hashimoto 2014-01-15 11:32:53 -08:00
parent 4fab57576b
commit 7248797fa5
2 changed files with 15 additions and 0 deletions

View File

@ -30,6 +30,8 @@ RSpec.configure do |c|
if Vagrant::Util::Platform.windows? if Vagrant::Util::Platform.windows?
c.filter_run_excluding :skip_windows c.filter_run_excluding :skip_windows
else
c.filter_run_excluding :windows
end end
end end

View File

@ -0,0 +1,13 @@
require File.expand_path("../../../base", __FILE__)
require "vagrant/util/platform"
describe Vagrant::Util::Platform do
subject { described_class }
describe "#fs_real_path" do
it "fixes drive letters on Windows", :windows do
expect(described_class.fs_real_path("c:/foo").to_s).to eql("C:/foo")
end
end
end