trying to stabilize issue with datetime in test suite

This commit is contained in:
Ruxton 2012-10-08 10:44:03 +08:00 committed by Florian Staudacher
parent a78cb352e6
commit 25b57cdd2a

View file

@ -92,7 +92,7 @@ describe PublicFetcher do
date = ActiveSupport::TimeZone.new('UTC').parse(post['created_at']).to_datetime date = ActiveSupport::TimeZone.new('UTC').parse(post['created_at']).to_datetime
entry = StatusMessage.find_by_guid(post['guid']) entry = StatusMessage.find_by_guid(post['guid'])
entry.created_at.should eql(date) entry.created_at.to_datetime.should eql(date)
end end
end end
@ -108,7 +108,7 @@ describe PublicFetcher do
date = ActiveSupport::TimeZone.new('UTC').parse(@now.to_s).to_datetime date = ActiveSupport::TimeZone.new('UTC').parse(@now.to_s).to_datetime
entry = StatusMessage.find_by_guid(post['guid']) entry = StatusMessage.find_by_guid(post['guid'])
entry.interacted_at.should eql(date) entry.interacted_at.to_datetime.should eql(date)
end end
end end
end end