DG MS; spec for clean_aspects
This commit is contained in:
parent
637a79a99d
commit
2c40fa5ebf
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue