moving branches
This commit is contained in:
parent
d61a227fc7
commit
11925ded2b
2 changed files with 4 additions and 2 deletions
|
|
@ -151,8 +151,8 @@ module Diaspora
|
||||||
|
|
||||||
aspect = Aspect.new
|
aspect = Aspect.new
|
||||||
aspect.name = a.xpath('/aspect/name').text
|
aspect.name = a.xpath('/aspect/name').text
|
||||||
aspect.post_ids = a.xpath('/aspect/post_ids/post_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(&:text)
|
aspect.person_ids = a.xpath('/aspect/person_ids/person_id').collect{ |x| x.text.to_id }
|
||||||
aspects << aspect
|
aspects << aspect
|
||||||
end
|
end
|
||||||
aspects
|
aspects
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,8 @@ describe Diaspora::Importer do
|
||||||
Post.count.should == 4
|
Post.count.should == 4
|
||||||
n.aspects.count.should == 6
|
n.aspects.count.should == 6
|
||||||
Person.count.should be == 5
|
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( @user1.person.id ).nil?.should == false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue