DG MS; testing that posts actually get serialized into an array.
This commit is contained in:
parent
8720dfa950
commit
8915eca3d5
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue