Extract @sshd cucumber hooks as cucumber-sshd gem

This commit is contained in:
Thibault Jouan
2014-03-12 23:16:27 +00:00
parent fdbe19617f
commit 2d360d97dd
3 changed files with 7 additions and 111 deletions

18
features/support/env.rb Normal file
View File

@@ -0,0 +1,18 @@
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'
require 'cucumber/sshd/cucumber'