Improve test expectations consistency (UAT)

This commit is contained in:
Thibault Jouan 2015-04-28 09:28:38 +00:00
parent ace86cf0e3
commit 01d9bdb3b3
2 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@ Feature: run control file path CLI option
Scenario: specifies run control file path Scenario: specifies run control file path
Given a file named uhwmrc.rb with: Given a file named uhwmrc.rb with:
""" """
puts 'run control evaluation' puts 'testing_run_control'
""" """
When I run uhwm with option -f uhwmrc.rb When I run uhwm with option -f uhwmrc.rb
Then the output must contain "run control evaluation" Then the output must contain "testing_run_control"

View File

@ -5,11 +5,11 @@ Feature: `layout' run control keyword
""" """
class MyLayout class MyLayout
def initialize **options def initialize **options
puts "testing_rc_layout_#{options.inspect}" if options.any? @options = options
end end
def register *_, **options def register *_
puts "testing_rc_layout_register" puts "testing_rc_layout_#{@options.inspect}"
end end
end end
""" """
@ -20,7 +20,7 @@ Feature: `layout' run control keyword
layout MyLayout layout MyLayout
""" """
When I run uhwm with options -r./my_layout When I run uhwm with options -r./my_layout
Then the output must contain "testing_rc_layout_register" Then the output must contain "testing_rc_layout_{}"
Scenario: configures a layout class with options Scenario: configures a layout class with options
Given a run control file with: Given a run control file with:
@ -36,4 +36,4 @@ Feature: `layout' run control keyword
layout MyLayout.new layout MyLayout.new
""" """
When I run uhwm with options -r./my_layout When I run uhwm with options -r./my_layout
Then the output must contain "testing_rc_layout_register" Then the output must contain "testing_rc_layout_{}"