Sha256: 45b6094fe87f1038a3f5e27fc33a4f288bdaf684ff50b236974590c362619f71
Contents?: true
Size: 660 Bytes
Versions: 4
Compression:
Stored size: 660 Bytes
Contents
require "test_helper" class DestroyVMActionTest < Test::Unit::TestCase setup do @klass = Vagrant::Action::VM::Destroy @app, @env = mock_action_data @vm = mock("vm") @env["vm"] = @vm @internal_vm = mock("internal") @vm.stubs(:vm).returns(@internal_vm) @instance = @klass.new(@app, @env) end context "destroying the VM" do should "destroy VM and attached images" do @internal_vm.expects(:destroy).with(:destroy_medium => :delete).once @env["vm"].expects(:vm=).with(nil).once @env.env.expects(:update_dotfile).once @app.expects(:call).with(@env).once @instance.call(@env) end end end
Version data entries
4 entries across 4 versions & 2 rubygems