Skip to content

Commit

Permalink
Make sure to round mspec results
Browse files Browse the repository at this point in the history
  • Loading branch information
iruby committed Mar 13, 2009
1 parent 931369d commit bbb954e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.rb
Expand Up @@ -143,7 +143,7 @@ def mb(bytes)
%th all specs pass rate
%th{:colspan => 2}= "#{gtir = grand_total_pass_rate(stats) * 100}%"
%th= "#{gtrb = grand_total_pass_rate(stats, :ruby) * 100}%"
%th= green_or_red(gtir - gtrb, "%")
%th= green_or_red((gtir - gtrb).round_to(2), "%")


%thead
Expand Down Expand Up @@ -217,7 +217,7 @@ def mb(bytes)
%th total pass rate
%td{:colspan => 2}= "#{tir = total_pass_rate(mspec[:ironruby], mspec[:ruby]) * 100}%"
%td= "#{trb = total_pass_rate(mspec[:ruby], mspec[:ruby]) * 100}%"
%td= green_or_red(tir - trb, "%")
%td= green_or_red((tir - trb).round_to(2), "%")

@@ stylesheet
body
Expand Down

0 comments on commit bbb954e

Please sign in to comment.