Class: TurnipFormatter::Scenario::Pending

Inherits:
Object
  • Object
show all
Includes:
TurnipFormatter::Scenario
Defined in:
lib/turnip_formatter/scenario/pending.rb

Instance Method Summary collapse

Methods included from TurnipFormatter::Scenario

#example, #feature_file_path, #feature_info, #feature_name, #id, #initialize, #name, #run_time, #status, #tags

Instance Method Details

#stepsObject



14
15
16
17
18
# File 'lib/turnip_formatter/scenario/pending.rb', line 14

def steps
  steps = super
  steps[offending_line].extend TurnipFormatter::Step::Pending
  steps
end

#validationObject



20
21
22
23
24
# File 'lib/turnip_formatter/scenario/pending.rb', line 20

def validation
  raise NotPendingScenarioError if status != 'pending'
  offending_line
  super
end