Add a new test to period

This commit is contained in:
Martin Lensment 2014-08-13 11:45:31 +03:00
parent 47be521a9d
commit 7cd2d1aec4
3 changed files with 32 additions and 1 deletions

View file

@ -173,7 +173,7 @@ class Domain < ActiveRecord::Base
class << self
def convert_period_to_time(period, unit)
return period.to_i.days if unit == 'd'
return period.to_i.days if unit == 'd'
return period.to_i.months if unit == 'm'
return period.to_i.years if unit == 'y'
end