From 360b1583bfbcd8e837c31689eb44b0204004145b Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Thu, 16 Apr 2015 12:27:21 +0000 Subject: [PATCH] Fix AcceptanceHelpers#with_other_wm --- lib/uh/wm/testing/acceptance_helpers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/uh/wm/testing/acceptance_helpers.rb b/lib/uh/wm/testing/acceptance_helpers.rb index 7bf2c30..72a24b0 100644 --- a/lib/uh/wm/testing/acceptance_helpers.rb +++ b/lib/uh/wm/testing/acceptance_helpers.rb @@ -46,7 +46,9 @@ module Uh end def with_other_wm - @other_wm = ChildProcess.build('twm').tap { |o| o.start } + @other_wm = ChildProcess.build('twm') + @other_wm.start + yield @other_wm.stop end