diff --git a/spec/lib/exporter_spec.rb b/spec/lib/exporter_spec.rb index 0c177ef4509bd667311deb0fb1f82db6cdf9e91b..88369dacf1aa353eb634b0a36c5bcb4824e58da8 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