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