Connect to X server

This commit is contained in:
Thibault Jouan
2015-04-06 20:24:49 +00:00
parent 75cf74c217
commit 8f9b767ce1
7 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
When /^I start uhwm$/ do
@process = run 'uhwm'
@interactive = @process
end

10
features/steps/x_steps.rb Normal file
View File

@@ -0,0 +1,10 @@
Then /^it must connect to X display$/ do
Timeout.timeout(exit_timeout) do
loop do
break if assert_partial_output_interactive 'Connected to'
sleep 0.1
end
end
expect(`sockstat -u`.lines.grep /\s+ruby.+\s+#{@process.pid}/)
.not_to be_empty
end