Skip to content

Commit

Permalink
Added test for add_extra_synced_folders
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune <[email protected]>
  • Loading branch information
Salim Afiune committed Nov 16, 2016
1 parent c95549b commit 589ef04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/kitchen/driver/vagrant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,19 @@ def run_command(_cmd, options = {})
])
end

describe "when chef_omnibus_cache is set" do
before do
allow(driver_object).to receive(:chef_omnibus_cache).
and_return("/tmp/path")
end

it "adds the extra synced folder for omnibus cache" do
expect(driver[:synced_folders]).to eq([
[File.expand_path("~/.kitchen/cache"), "/tmp/path", "create: true"]
])
end
end

it "sets :vagrant_binary to 'vagrant' by default" do
expect(driver[:vagrant_binary]).to eq("vagrant")
end
Expand Down

0 comments on commit 589ef04

Please sign in to comment.