Refactor cucumber steps (quitting uhwm)

This commit is contained in:
Thibault Jouan
2015-04-21 05:57:37 +00:00
parent 0b7c3e9128
commit a4b6127ec8
2 changed files with 7 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ module Uh
module Testing
module AcceptanceHelpers
TIMEOUT_DEFAULT = 2
QUIT_KEYBINDING = 'alt+shift+q'.freeze
def uhwm_run options = '-v'
command = %w[uhwm]
@@ -12,6 +13,10 @@ module Uh
@interactive = @process = run command.join ' '
end
def uhwm_request_quit
x_key QUIT_KEYBINDING
end
def uhwm_ensure_stop
if @process
x_key 'alt+shift+q'