Sha256: 10697d20e44c9a659c5273e92d593ea7e922d9e73837ff220a6c4ee099395900
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
require 'spec_helper' describe 'VagrantPlugins::GuestAlpine::Cap::Halt' do let(:described_class) do VagrantPlugins::GuestAlpine::Plugin.components.guest_capabilities[:alpine].get(:halt) end let(:machine) { double('machine') } let(:communicator) { VagrantTests::DummyCommunicator::Communicator.new(machine) } before do allow(machine).to receive(:communicate).and_return(communicator) end after do communicator.verify_expectations! end it 'should halt guest' do expect(communicator).to receive(:sudo).with('poweroff') allow_message_expectations_on_nil described_class.halt(machine) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-alpine-0.4.0 | spec/cap/halt_spec.rb |
vagrant-alpine-0.3.0 | spec/cap/halt_spec.rb |