correct partial name

This commit is contained in:
Raphael 2011-01-28 16:54:30 -08:00
parent 7339e46bfb
commit 8151f3b540
2 changed files with 4 additions and 1 deletions

View file

@ -21,7 +21,7 @@
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts')
%ul
- for uid in @friends.keys
= render :partial => 'remote_person', :friend => @friends[uid], :uid => uid
= render :partial => 'remote_friend', :friend => @friends[uid], :uid => uid
- else
%br
%br

View file

@ -70,6 +70,9 @@ JSON
it 'contains a diaspora person object' do
@service.finder.values.first[:person].should == @user2.person
end
it 'caches the profile' do
@service.finder.values.first[:person].profile.loaded?.should be_true
end
it 'does not include the person if the search is disabled' do
p = @user2.person.profile
p.searchable = false