Check that time serializes correctly post-parse, not on string equality
This commit is contained in:
parent
8751503aa4
commit
360891496e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue