Commit aceb3bee58fd3a5fe178b38b66bcff320aa709d6

Authored by Daniela Feitosa
1 parent 31c76943

ActionItem773: adding button to find peoople in "manage/friends/contacts"

app/views/friends/index.rhtml
@@ -22,13 +22,14 @@ @@ -22,13 +22,14 @@
22 <p> 22 <p>
23 <em> 23 <em>
24 <%= __('You have no friends yet.') %> 24 <%= __('You have no friends yet.') %>
25 - <%= link_to _('Want you see other persons on this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %> 25 + <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %>
26 </em> 26 </em>
27 </p> 27 </p>
28 <% end %> 28 <% end %>
29 29
30 <% button_bar do %> 30 <% button_bar do %>
31 <%= button(:back, _('Go back'), :controller => 'profile_editor') %> 31 <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
  32 + <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %>
32 <% end %> 33 <% end %>
33 34
34 </div><!-- end id="manage_friends" --> 35 </div><!-- end id="manage_friends" -->
test/functional/friends_controller_test.rb
@@ -69,4 +69,8 @@ class FriendsControllerTest &lt; Test::Unit::TestCase @@ -69,4 +69,8 @@ class FriendsControllerTest &lt; Test::Unit::TestCase
69 end 69 end
70 end 70 end
71 71
  72 + should 'display find people button' do
  73 + get :index, :profile => 'testuser'
  74 + assert_tag :tag => 'a', :content => 'Find people', :attributes => { :href => '/assets/people' }
  75 + end
72 end 76 end