posts now serialize their created_at time

This commit is contained in:
maxwell 2010-10-14 16:49:08 -07:00
parent a30a2666c6
commit d61a227fc7
2 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,7 @@ class Post
xml_accessor :_id
xml_accessor :person, :as => Person
xml_reader :public
xml_reader :created_at
key :public , Boolean, :default => false

View file

@ -39,6 +39,11 @@ describe Diaspora::Exporter do
doc.xpath('//posts').to_s.should include status_message1.id.to_s
end
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
end
it 'should include a list of users posts' do
doc = Nokogiri::XML::parse(exported)
posts = doc.xpath('//posts').to_s