Tests for target model
created_at and due_date are preset cause we don't want it to depend on system time.
This commit is contained in:
parent
a8b270f6e1
commit
680d23a64a
2 changed files with 107 additions and 48 deletions
|
|
@ -64,7 +64,7 @@ class Target < ActiveRecord::Base
|
|||
'unit' => unit,
|
||||
'created_at' => created_at,
|
||||
'progress' => progress,
|
||||
'days_left' => days_left,
|
||||
'days_left' => days_left
|
||||
}
|
||||
result
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue