Commit 7c35802b3ecf04ab2b8f7870511e0e7c1ba166cf

Authored by Daniela Feitosa
1 parent 08a13702

Changed search options names

(ActionItem1734)
app/views/shared/_profile_search_form.rhtml
... ... @@ -5,8 +5,8 @@
5 5 </span>
6 6 <%= submit_button(:search, _('Search')) %>
7 7 <div>
8   - <%= labelled_radio_button __('Profile'), 'where', 'profile', true %>
9   - <%= labelled_radio_button environment.name, 'where', 'environment', false %>
  8 + <%= labelled_radio_button profile.short_name, 'where', 'profile', true, :title => _("Find in %s's content") % profile.short_name %>
  9 + <%= labelled_radio_button _('General'), 'where', 'environment', false, :title => _("Search all content") %>
10 10 </div>
11 11 </div>
12 12 <% end %>
... ...
features/profile_search.feature
... ... @@ -53,7 +53,7 @@ Feature: search inside a profile
53 53 Scenario: search on environment
54 54 Given I go to Joao Silva's profile
55 55 And I fill in "q" with "bees"
56   - And I choose "Colivre.net"
  56 + And I choose "General"
57 57 And I press "Search"
58 58 Then I should be on the search page
59 59 And I should see "bees and butterflies" within "#search-page"
... ...