Sha256: 010270fde64787672630caac102bde9739831474559a01b684ca9e8df8c9b72c
Contents?: true
Size: 800 Bytes
Versions: 3
Compression:
Stored size: 800 Bytes
Contents
require 'cucumber/step_mother' module Cucumber module StepMethods def World(&proc) $executor.register_world_proc(&proc) end def Before(&proc) $executor.register_before_proc(&proc) end def After(&proc) $executor.register_after_proc(&proc) end def Given(key, &proc) step_mother.register_step_proc(key, &proc) end def When(key, &proc) step_mother.register_step_proc(key, &proc) end def Then(key, &proc) step_mother.register_step_proc(key, &proc) end # Simple workaround for old skool steps def steps_for(*_) STDERR.puts "WARNING: In Cucumber the steps_for method is obsolete" yield end def step_mother #:nodoc: @step_mother ||= StepMother.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aslakhellesoy-cucumber-0.0.1 | lib/cucumber/step_methods.rb |
aslakhellesoy-cucumber-0.1.1 | lib/cucumber/step_methods.rb |
aslakhellesoy-cucumber-0.1.2 | lib/cucumber/step_methods.rb |