From 25b57cdd2a7470bf2c5c2dc9ce42f1e8e914057d Mon Sep 17 00:00:00 2001 From: Ruxton Date: Mon, 8 Oct 2012 10:44:03 +0800 Subject: [PATCH] trying to stabilize issue with datetime in test suite --- spec/lib/diaspora/fetcher/public_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/diaspora/fetcher/public_spec.rb b/spec/lib/diaspora/fetcher/public_spec.rb index 382df7637..2773ab33d 100644 --- a/spec/lib/diaspora/fetcher/public_spec.rb +++ b/spec/lib/diaspora/fetcher/public_spec.rb @@ -92,7 +92,7 @@ describe PublicFetcher do date = ActiveSupport::TimeZone.new('UTC').parse(post['created_at']).to_datetime entry = StatusMessage.find_by_guid(post['guid']) - entry.created_at.should eql(date) + entry.created_at.to_datetime.should eql(date) end end @@ -108,7 +108,7 @@ describe PublicFetcher do date = ActiveSupport::TimeZone.new('UTC').parse(@now.to_s).to_datetime entry = StatusMessage.find_by_guid(post['guid']) - entry.interacted_at.should eql(date) + entry.interacted_at.to_datetime.should eql(date) end end end