summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-08-25 21:04:25 +0200
committeranonym <anonym@riseup.net>2016-08-25 21:04:46 +0200
commitcf24c1366dc01e62073303135f45285fe5daabde (patch)
tree89ab3ea756d174d061da3659987c97421fa740c0
parent6730258b1bc5064d7f83ece45c0f25ea6a81ed78 (diff)
Move code to a more suitable neighborhood.
-rw-r--r--features/step_definitions/usb.rb31
1 files changed, 16 insertions, 15 deletions
diff --git a/features/step_definitions/usb.rb b/features/step_definitions/usb.rb
index 9af53bd..289a57c 100644
--- a/features/step_definitions/usb.rb
+++ b/features/step_definitions/usb.rb
@@ -111,6 +111,22 @@ Then /^Tails Installer detects that a device is too small$/ do
end
end
+
+Then /^a suitable USB device is (?:still )?not found$/ do
+ @installer.child('No device suitable to install Tails could be found',
+ roleName: 'label').wait(30)
+end
+
+Then /^(no|the "([^"]+)") USB drive is selected$/ do |mode, name|
+ try_for(30) do
+ if mode == 'no'
+ tails_installer_selected_device == ''
+ else
+ tails_installer_is_device_selected?(name)
+ end
+ end
+end
+
When /^I "([^"]*)" Tails to USB drive "([^"]+)"$/ do |mode, name|
step "I start Tails Installer in \"#{mode}\" mode"
usb_install_helper(name)
@@ -609,18 +625,3 @@ Then /^Tails has started in UEFI mode$/ do
Given /^I create a ([[:alpha:]]+) label on disk "([^"]+)"$/ do |type, name|
$vm.storage.disk_mklabel(name, type)
end
-
-Then /^a suitable USB device is (?:still )?not found$/ do
- @installer.child('No device suitable to install Tails could be found',
- roleName: 'label').wait(30)
-end
-
-Then /^(no|the "([^"]+)") USB drive is selected$/ do |mode, name|
- try_for(30) do
- if mode == 'no'
- tails_installer_selected_device == ''
- else
- tails_installer_is_device_selected?(name)
- end
- end
-end