mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-08 16:26:25 -04:00
core: add test for fs_real_path on Windows
This commit is contained in:
parent
4fab57576b
commit
7248797fa5
2 changed files with 15 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ RSpec.configure do |c|
|
|||
|
||||
if Vagrant::Util::Platform.windows?
|
||||
c.filter_run_excluding :skip_windows
|
||||
else
|
||||
c.filter_run_excluding :windows
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
13
test/unit/vagrant/util/platform_test.rb
Normal file
13
test/unit/vagrant/util/platform_test.rb
Normal 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
|
||||
Loading…
Reference in a new issue