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