Sha256: 831ac54cf3bf488c9d9ce3cce11da716c64c4c5b0397b1f37fd8c1603026f86d

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

def prepare_cucumber_example
  @runtime = Cucumber::Runtime.new
  language = @runtime.load_programming_language('rb')
  scenario = double('scenario', :language => 'en', :accept_hook? => true)
  language.send(:begin_scenario, scenario)
  @world = language.current_world
  @main = Object.new
  @main.extend(Cucumber::RbSupport::RbDsl)
  # @runtime.before(scenario)
end

def invoke_cucumber_step(step)
  support_code.step_match(step).invoke(nil) # nil means no multiline args
end

def support_code
  @runtime.instance_variable_get(:@support_code)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber_priority-0.1.1 spec/cucumber_priority/cucumber_helper.rb
cucumber_priority-0.1.0 spec/cucumber_priority/cucumber_helper.rb