moving branches

This commit is contained in:
maxwell 2010-10-14 19:15:32 -07:00
parent d61a227fc7
commit 11925ded2b
2 changed files with 4 additions and 2 deletions

View file

@ -151,8 +151,8 @@ module Diaspora
aspect = Aspect.new
aspect.name = a.xpath('/aspect/name').text
aspect.post_ids = a.xpath('/aspect/post_ids/post_id').collect(&:text)
aspect.person_ids = a.xpath('/aspect/person_ids/person_id').collect(&:text)
aspect.post_ids = a.xpath('/aspect/post_ids/post_id').collect{ |x| x.text.to_id }
aspect.person_ids = a.xpath('/aspect/person_ids/person_id').collect{ |x| x.text.to_id }
aspects << aspect
end
aspects

View file

@ -203,6 +203,8 @@ describe Diaspora::Importer do
n.aspects.count.should == 6
Person.count.should be == 5
User.first.person.diaspora_handle.should == User.first.diaspora_handle
Person.find_by_id( @user1.person.id ).nil?.should == false
Person.find_by_id( @user2.person.id ).nil?.should == false