Method: Specjour::Cucumber::Summarizer#steps
- Defined in:
- lib/specjour/cucumber/final_report.rb
#steps(status = nil) ⇒ Object
40 41 42 43 44 |
# File 'lib/specjour/cucumber/final_report.rb', line 40 def steps(status=nil) length = status ? @steps[status] : @steps.inject(0) {|h,(k,v)| h += v} any = @steps[status] > 0 if status OpenStruct.new(:length => length , :any? => any) end |