spec/unit/docker_installer_spec.rb in vocker-0.3.3 vs spec/unit/docker_installer_spec.rb in vocker-0.4.0

- old
+ new

@@ -9,12 +9,13 @@ verify_contract(:docker_installer) fake(:guest) fake(:ui) { Vagrant::UI::Interface } let(:machine) { fake(:machine, guest: guest, ui: ui) } + let(:version) { '0.6.4' } - subject { described_class.new(machine) } + subject { described_class.new(machine, version) } it 'skips docker installation if guest is not capable' do stub(guest).capability?(:docker_installed) { false } subject.ensure_installed @@ -40,10 +41,10 @@ } subject.ensure_installed expect(guest).to have_received.capability(:docker_installed) - expect(guest).to have_received.capability(:docker_install) + expect(guest).to have_received.capability(:docker_install, version) expect(guest).to have_received.capability(:docker_configure_auto_start) end it 'errors out if docker could not be installed' do stub(guest).capability(:docker_installed) { false }