mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
moving branches
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -202,6 +202,8 @@ describe Diaspora::Importer do
|
||||
Post.count.should == 4
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user