diff --git a/spec/dummy/app/decorators/post_decorator.rb b/spec/dummy/app/decorators/post_decorator.rb index 110c3e8..fc73cb8 100644 --- a/spec/dummy/app/decorators/post_decorator.rb +++ b/spec/dummy/app/decorators/post_decorator.rb @@ -1,6 +1,6 @@ class PostDecorator < Draper::Decorator def posted_date - if created_at.to_date == Date.today + if created_at.to_date == DateTime.now.utc.to_date "Today" else "Not Today"