Merge pull request #3783 from YungSang/topic

kernel/v2: set disabled to false whenever synced folder override
This commit is contained in:
Mitchell Hashimoto 2014-05-17 12:19:50 -07:00
commit b1f3ac0783
2 changed files with 2 additions and 1 deletions

View File

@ -186,6 +186,7 @@ module VagrantPlugins
options ||= {}
options[:guestpath] = guestpath.to_s.gsub(/\/$/, '')
options[:hostpath] = hostpath
options[:disabled] = options[:disabled] || false
options = (@__synced_folders[options[:guestpath]] || {}).
merge(options.dup)

View File

@ -418,7 +418,7 @@ describe VagrantPlugins::Kernel_V2::VMConfig do
sf = subject.synced_folders
expect(sf.length).to eq(1)
expect(sf).to have_key("/vagrant")
expect(sf["/vagrant"][:disabled]).to be_true
expect(sf["/vagrant"][:disabled]).to be_false
expect(sf["/vagrant"][:foo]).to eq(:bar)
end
end