Evaluate run control file when present

This commit is contained in:
Thibault Jouan
2015-04-14 00:38:45 +00:00
parent 8165a1d4f5
commit 7493ab3284
4 changed files with 47 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
@mocked_home_directory
Feature: run control file evaluation
Scenario: evaluates the default run control file when it exists
Given a file named .uhwmrc.rb with:
"""
puts 'run control evaluation'
"""
When I start uhwm
Then the output must contain "run control evaluation"

View File

@@ -19,6 +19,10 @@ Then /^the output must contain:$/ do |content|
uhwm_wait_output content.to_s
end
Then /^the output must contain "([^"]+)"$/ do |content|
uhwm_wait_output content.to_s
end
Then /^the output must contain current display$/ do
uhwm_wait_output ENV['DISPLAY']
end