Sha256: ae50f59e8d2488d3a107ebcf277ca1f3d2dfcc1d3efb4b8eddeaa39686f77854
Contents?: true
Size: 613 Bytes
Versions: 11
Compression:
Stored size: 613 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper') class DestroyActionTest < Test::Unit::TestCase setup do @mock_vm, @vm, @action = mock_action(Vagrant::Actions::VM::Destroy) mock_config end context "executing" do setup do @vm.stubs(:destroy) end should "invoke an around callback around the destroy" do @mock_vm.expects(:invoke_around_callback).with(:destroy).once @action.execute! end should "destroy VM and attached images" do @vm.expects(:destroy).with(:destroy_image => true).once @action.execute! end end end
Version data entries
11 entries across 11 versions & 2 rubygems