DG MS; testing that posts actually get serialized into an array.

This commit is contained in:
danielvincent 2010-10-12 15:39:52 -07:00
parent 8720dfa950
commit 8915eca3d5

View file

@ -151,6 +151,10 @@ describe Diaspora::Importer do
describe '#parse_posts' do
let(:posts) { @importer.parse_posts(@doc) }
it 'should return an array' do
posts.count.should == 4
end
it 'should return vaild posts' do
posts.all?(&:valid?).should be true
end