diff --git a/features/cli/run_control.feature b/features/cli/run_control.feature index 020332c..ebc2b8a 100644 --- a/features/cli/run_control.feature +++ b/features/cli/run_control.feature @@ -3,7 +3,7 @@ Feature: run control file path CLI option Scenario: specifies run control file path Given a file named uhwmrc.rb with: """ - puts 'run control evaluation' + puts 'testing_run_control' """ 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" diff --git a/features/run_control/layout.feature b/features/run_control/layout.feature index 44899f2..1324d42 100644 --- a/features/run_control/layout.feature +++ b/features/run_control/layout.feature @@ -5,11 +5,11 @@ Feature: `layout' run control keyword """ class MyLayout def initialize **options - puts "testing_rc_layout_#{options.inspect}" if options.any? + @options = options end - def register *_, **options - puts "testing_rc_layout_register" + def register *_ + puts "testing_rc_layout_#{@options.inspect}" end end """ @@ -20,7 +20,7 @@ Feature: `layout' run control keyword layout MyLayout """ 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 Given a run control file with: @@ -36,4 +36,4 @@ Feature: `layout' run control keyword layout MyLayout.new """ 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_{}"