Check that time serializes correctly post-parse, not on string equality

This commit is contained in:
Raphael 2010-10-19 17:09:52 -07:00
parent 8751503aa4
commit 360891496e

View file

@ -41,7 +41,7 @@ describe Diaspora::Exporter do
it 'should include post created at time' do it 'should include post created at time' do
doc = Nokogiri::XML::parse(exported) 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 end
it 'should include a list of users posts' do it 'should include a list of users posts' do