DG MS; spec for clean_aspects

This commit is contained in:
maxwell 2010-10-13 13:32:22 -07:00
parent 637a79a99d
commit 2c40fa5ebf

View file

@ -99,6 +99,16 @@ describe Diaspora::Importer do
aspect1.post_ids.should_not include status_message3.id aspect1.post_ids.should_not include status_message3.id
aspect1.post_ids.should have(2).ids aspect1.post_ids.should have(2).ids
end end
end
describe '#filter_people' do
it 'should filter people who already exist in the database' do
people = [user1.person, user2.person, Factory.build(:person)]
importer.filter_people(people).should have(1).person
end
end end
end end