# File lib/cucumber/formatter/summary.rb, line 5 def scenario_summary(runtime, &block) scenarios_proc = lambda{|status| runtime.scenarios(status)} dump_count(runtime.scenarios.length, "scenario") + dump_status_counts(scenarios_proc, &block) end
# File lib/cucumber/formatter/summary.rb, line 10 def step_summary(runtime, &block) steps_proc = lambda{|status| runtime.steps(status)} dump_count(runtime.steps.length, "step") + dump_status_counts(steps_proc, &block) end