From 17de52f8af05c0549fe6b0685edb13fd09190b27 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Sat, 18 Apr 2015 02:02:21 +0000 Subject: [PATCH] Modify test helpers to quit gracefully in cucumber --- lib/uh/wm/testing/acceptance_helpers.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/uh/wm/testing/acceptance_helpers.rb b/lib/uh/wm/testing/acceptance_helpers.rb index bf5d05b..44612aa 100644 --- a/lib/uh/wm/testing/acceptance_helpers.rb +++ b/lib/uh/wm/testing/acceptance_helpers.rb @@ -11,7 +11,10 @@ module Uh end def uhwm_ensure_stop - @process and @process.terminate + if @process + x_key 'alt+q' + @process.terminate + end end def uhwm_pid