Implements timecop to make tests independent from DateTime (close #327)

This commit is contained in:
Chrisbr 2014-07-23 09:08:50 +02:00
parent ade64f339f
commit 7c51d1a42f
14 changed files with 42 additions and 38 deletions

View file

@ -2,7 +2,7 @@
FactoryGirl.define do
factory :target do
due_date Date.today + 14
due_date { 14.days.from_now }
target_count 100
unit Target.units[:submissions]
end