Method: Cucumberator::Commands::Undo.perform

Defined in:
lib/cucumberator/commands/undo.rb

.perform(scenario, step_line, last_input, saved_stack, *args, &block) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/cucumberator/commands/undo.rb', line 4

def perform(scenario, step_line, last_input, saved_stack, *args, &block)
  if saved_stack.empty?
    puts "There's nothing to revert yet"
    return false
  end

  new(scenario, step_line, saved_stack)
  false
end