Skip to content

Commit

Permalink
Compatibility with ruby 1.8
Browse files Browse the repository at this point in the history
Avoiding use of the 1-arg round method introduced in ruby 1.9
  • Loading branch information
bendilley committed Jan 2, 2013
1 parent 39c940c commit 233cc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/formatter/nagios.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def scenario_name(keyword, name, file_colon_line, source_indent)
def print_summary
@total = @failed.size + @passed.size + @warning.size
@status = @failed.size > 0 && "CRITICAL" || @warning.size > 0 && "WARNING" || "OK"
@run_time = (Time.now - @start_time).round(2)
@run_time = ((Time.now - @start_time)*100).round/100.0

service_output = [ "CUCUMBER #{@status} - Critical: #{@failed.size}",
"Warning: #{@warning.size}", "#{@passed.size} okay" ]
Expand Down

0 comments on commit 233cc65

Please sign in to comment.