Update specs to match updated behavior for local install

This commit is contained in:
Chris Roberts 2016-11-11 15:21:30 -08:00
parent 1806cc1c5c
commit 3afa7a3193
1 changed files with 2 additions and 6 deletions

View File

@ -66,14 +66,10 @@ describe Vagrant::Plugin::Manager do
local_spec.name = "bar"
local_spec.version = version
expect(bundler).to receive(:install_local).with(name).
expect(bundler).to receive(:install_local).with(name, {}).
ordered.and_return(local_spec)
expect(bundler).to receive(:install).once.with { |plugins, local|
expect(plugins).to have_key("bar")
expect(plugins["bar"]["gem_version"]).to eql("#{version}")
expect(local).to be_true
}.ordered.and_return([local_spec])
expect(bundler).not_to receive(:install)
subject.install_plugin(name)