Add unit test for tag cloud

This commit is contained in:
Katrina Owen 2013-03-01 16:03:35 -05:00
parent 63fb7a589c
commit a13199cdda
5 changed files with 34 additions and 7 deletions

View file

@ -14,7 +14,7 @@ module Stats
end
def font_size(tag)
(9 + 2*(tag.count.to_i-min)/divisor)
(9 + 2*(tag.count-min)/divisor)
end
private