From 360891496eea864e6d7285a3aaea32d3ae6a795d Mon Sep 17 00:00:00 2001 From: Raphael <raphael@joindiaspora.com> Date: Tue, 19 Oct 2010 17:09:52 -0700 Subject: [PATCH] Check that time serializes correctly post-parse, not on string equality --- spec/lib/exporter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/exporter_spec.rb b/spec/lib/exporter_spec.rb index 0c177ef450..88369dacf1 100644 --- a/spec/lib/exporter_spec.rb +++ b/spec/lib/exporter_spec.rb @@ -41,7 +41,7 @@ describe Diaspora::Exporter do it 'should include post created at time' do doc = Nokogiri::XML::parse(exported) - doc.xpath('//posts').to_s.should include status_message1.created_at.to_s + Time.parse(doc.xpath('//posts/status_message/created_at').first.text).should == status_message1.created_at end it 'should include a list of users posts' do -- GitLab