Skip to content
Snippets Groups Projects
Commit 36089149 authored by Raphael's avatar Raphael
Browse files

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

parent 8751503a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment