Skip to content
Snippets Groups Projects
Commit ca1d9c11 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix tests

parent f2eff419
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,11 @@ module WithPublication
end
def published_in_the_future?
published && published_at > Time.now
published && published_at.present? && published_at > Time.now
end
def published_now?
published && published_at <= Time.now
published && published_at.present? && published_at <= Time.now
end
protected
......
......@@ -53,6 +53,7 @@ page_root:
language: fr
position: 1
published: true
published_at: 2010-11-28 00:00:00
page_test:
university: default_university
......@@ -62,6 +63,7 @@ page_test:
language: fr
position: 1
published: true
published_at: 2010-11-28 00:00:00
parent: page_root
page_with_no_dependency:
......@@ -72,4 +74,5 @@ page_with_no_dependency:
language: fr
position: 2
published: true
published_at: 2010-11-28 00:00:00
parent: page_root
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment