From 2c40fa5ebf251713ba94011d553442d356cf4aab Mon Sep 17 00:00:00 2001 From: maxwell Date: Wed, 13 Oct 2010 13:32:22 -0700 Subject: [PATCH] DG MS; spec for clean_aspects --- spec/lib/verify_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/lib/verify_spec.rb b/spec/lib/verify_spec.rb index a07325687..6590c5d2b 100644 --- a/spec/lib/verify_spec.rb +++ b/spec/lib/verify_spec.rb @@ -99,6 +99,16 @@ describe Diaspora::Importer do aspect1.post_ids.should_not include status_message3.id aspect1.post_ids.should have(2).ids 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