vidmantas/cucumberator

View on GitHub
lib/cucumberator.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'readline'
require 'cucumberator/current_step'
require 'cucumberator/input'
# require 'pry'

After('@cucumberize') do |scenario|
  Cucumberator::Input.new(self, scenario)
end

Before do |scenario|
  @current_cucumberator_scenario = scenario
  @current_step = Cucumberator::CurrentStep.new(scenario)
end

AfterStep do
  @current_step.increase
end

Then /^I will write new steps$/ do
  Cucumberator::Input.new(self, @current_cucumberator_scenario, @current_step.line)
end