Fix specs
This commit is contained in:
parent
a85e11fa51
commit
578cf89812
6 changed files with 39 additions and 36 deletions
|
@ -7,6 +7,7 @@ class Milestone < ActiveRecord::Base
|
|||
|
||||
validates :title, presence: true
|
||||
validates :project, presence: true
|
||||
validates :closed, inclusion: { in: [true, false] }
|
||||
|
||||
def self.active
|
||||
where("due_date > ? OR due_date IS NULL", Date.today)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue