class PrettyFace::Formatter::Report

Attributes

features[R]

Public Class Methods

new() click to toggle source
# File lib/pretty_face/formatter/report.rb, line 46
def initialize
  @features = []
end

Public Instance Methods

add_feature(feature) click to toggle source
# File lib/pretty_face/formatter/report.rb, line 58
def add_feature(feature)
  @features << feature
end
add_scenario(scenario) click to toggle source
# File lib/pretty_face/formatter/report.rb, line 62
def add_scenario(scenario)
  current_feature.scenarios << scenario
end
add_step(step) click to toggle source
# File lib/pretty_face/formatter/report.rb, line 78
def add_step(step)
  current_scenario.steps << step
end
begin_background() click to toggle source
# File lib/pretty_face/formatter/report.rb, line 66
def begin_background
  @processing_background = true
end
current_feature() click to toggle source
# File lib/pretty_face/formatter/report.rb, line 50
def current_feature
  @features.last
end
current_scenario() click to toggle source
# File lib/pretty_face/formatter/report.rb, line 54
def current_scenario
  current_feature.scenarios.last
end
end_background() click to toggle source
# File lib/pretty_face/formatter/report.rb, line 70
def end_background
  @processing_background = false
end
processing_background_steps?() click to toggle source
# File lib/pretty_face/formatter/report.rb, line 74
def processing_background_steps?
  @processing_background
end