updated advertisement test

This commit is contained in:
albert
2012-05-11 17:09:18 -04:00
parent 4cfe8faae9
commit 49778758b9
3 changed files with 17 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ class Advertisement < ActiveRecord::Base
if width > 100 || height > 100
if height < width
ratio = 100.0 / width
return (height * ratio)
return (height * ratio).to_i
else
return 100
end