summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/common_steps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/common_steps.rb')
-rw-r--r--features/step_definitions/common_steps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 8cf8ecd..bb8aeb1 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -62,7 +62,7 @@ def restore_background
end
Given /^a computer$/ do
- @vm.destroy if @vm
+ @vm.destroy_and_undefine if @vm
@vm = VM.new($virt, $vm_xml_path, $vmnet, $vmstorage, $x_display)
end
@@ -207,7 +207,7 @@ end
When /^I destroy the computer$/ do
next if @skip_steps_while_restoring_background
- @vm.destroy
+ @vm.destroy_and_undefine
end
Given /^the computer (re)?boots Tails$/ do |reboot|