correct partial name
This commit is contained in:
parent
7339e46bfb
commit
8151f3b540
2 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts')
|
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts')
|
||||||
%ul
|
%ul
|
||||||
- for uid in @friends.keys
|
- for uid in @friends.keys
|
||||||
= render :partial => 'remote_person', :friend => @friends[uid], :uid => uid
|
= render :partial => 'remote_friend', :friend => @friends[uid], :uid => uid
|
||||||
- else
|
- else
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,9 @@ JSON
|
||||||
it 'contains a diaspora person object' do
|
it 'contains a diaspora person object' do
|
||||||
@service.finder.values.first[:person].should == @user2.person
|
@service.finder.values.first[:person].should == @user2.person
|
||||||
end
|
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
|
it 'does not include the person if the search is disabled' do
|
||||||
p = @user2.person.profile
|
p = @user2.person.profile
|
||||||
p.searchable = false
|
p.searchable = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue