Sha256: 10350b90c33e12c916cfb1584e537a0cb3bf9657267304c456e57fdc13987a45
Contents?: true
Size: 952 Bytes
Versions: 7
Compression:
Stored size: 952 Bytes
Contents
require "vagrant-windows/helper" describe VagrantWindows::Helper do class DummyHelper include VagrantWindows::Helper end before(:all) do @dummy = DummyHelper.new end describe "win_friendly_path" do it "should replace slashes with backslashes" do @dummy.win_friendly_path('c:/tmp/dir').should eq('c:\\tmp\\dir') end it "should prepend c: drive if not drive specified" do @dummy.win_friendly_path('/tmp/dir').should eq('c:\\tmp\\dir') end it "should return nil if no path specified" do @dummy.win_friendly_path(nil).should be_nil end end describe "win_friendly_share_id" do it "should use share id if present" do @dummy.win_friendly_share_id('sharename').should eq('sharename') end it "should use last folder name in guest_path" do @dummy.win_friendly_share_id('/tmp/folder/sharename').should eq('tmp_folder_sharename') end end end
Version data entries
7 entries across 7 versions & 1 rubygems