Implements timecop to make tests independent from DateTime (close #327)
This commit is contained in:
parent
ade64f339f
commit
7c51d1a42f
14 changed files with 42 additions and 38 deletions
|
|
@ -97,7 +97,7 @@ describe Target do
|
|||
target = build(:target, target_count: 10, unit: Target.units[:registrations])
|
||||
conference.targets = [target]
|
||||
|
||||
result = "10 Registrations by #{Date.today + 14}"
|
||||
result = "10 Registrations by #{14.days.from_now.to_date}"
|
||||
|
||||
expect(target.to_s).to eq(result)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue