Extract cucumber and aruba monkey patches

This commit is contained in:
Thibault Jouan
2013-08-05 14:10:31 +00:00
parent 0cccbc8dde
commit 47560e55c5
3 changed files with 39 additions and 41 deletions

View File

@@ -0,0 +1,16 @@
module Cucumber
class Runtime
alias :old_step_match :step_match
def step_match(step_name, name_to_report = nil)
if step_name.include? ' must '
name_to_report = step_name.dup
step_name.gsub! ' must ', ' should '
end
old_step_match(step_name, name_to_report)
end
end
end
require 'aruba/cucumber'