Extract user acceptance test helpers in a module

This commit is contained in:
Thibault Jouan
2015-04-13 01:56:08 +00:00
parent 10591d0646
commit 53d83d5f08
10 changed files with 84 additions and 59 deletions

View File

@@ -1,16 +1,5 @@
def uhwm_run options = '-v'
command = %w[uhwm]
command << options if options
@interactive = @process = run command.join ' '
end
def uhwm_run_wait_ready
uhwm_run
uhwm_wait_output 'Connected to'
end
Given /^another window manager is running$/ do
expect(@other_wm).to be_alive
expect(other_wm).to be_alive
end
Given /^uhwm is running$/ do