From 193180fe6d0bce58bcb7dffb45e22d47bfa6a943 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 14 Apr 2015 03:22:21 +0000 Subject: [PATCH] Add a cucumber step to handle run control file --- features/run_control/evaluation.feature | 2 +- features/steps/run_control_steps.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 features/steps/run_control_steps.rb diff --git a/features/run_control/evaluation.feature b/features/run_control/evaluation.feature index 7c20df0..e60c40b 100644 --- a/features/run_control/evaluation.feature +++ b/features/run_control/evaluation.feature @@ -1,7 +1,7 @@ Feature: run control file evaluation Scenario: evaluates the default run control file when present - Given a file named .uhwmrc.rb with: + Given a run control file with: """ puts 'run control evaluation' """ diff --git a/features/steps/run_control_steps.rb b/features/steps/run_control_steps.rb new file mode 100644 index 0000000..3886700 --- /dev/null +++ b/features/steps/run_control_steps.rb @@ -0,0 +1,3 @@ +Given /^a run control file with:$/ do |content| + write_file '.uhwmrc.rb', content +end