Commit 0e26cea3498b45e39eac108bf838a72b66096f7d
1 parent
0c1d441e
Exists in
staging
and in
42 other branches
Fixing noosfero tests
Showing
3 changed files
with
2 additions
and
12 deletions
Show diff stats
app/views/layouts/application-ng.rhtml
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 | <% end %> |
70 | 70 | |
71 | 71 | </span> |
72 | - <form action="/search" class="search_form" method="get" class="clean"> | |
72 | + <form id="top-search" action="/search" class="search_form clean" method="get"> | |
73 | 73 | <input name="query" size="15" title="<%=_('Search...')%>" onfocus="this.form.className='focused';" onblur="this.form.className=''" /> |
74 | 74 | <div><%=_('Press <strong>Enter</strong> to send the search query.')%></div> |
75 | 75 | <%= javascript_tag 'jQuery("#user form input").hint();' %> | ... | ... |
app/views/map_balloon/product.rhtml
test/functional/home_controller_test.rb
... | ... | @@ -136,14 +136,4 @@ class HomeControllerTest < ActionController::TestCase |
136 | 136 | assert_no_tag :tag => 'a', :attributes => {:href => '/account/signup'} |
137 | 137 | end |
138 | 138 | |
139 | - should "not display search field if there is no search engine on" do | |
140 | - Noosfero::Plugin::Manager.any_instance.stubs(:first).with(:search_engine?).returns(false) | |
141 | - get :index | |
142 | - assert_no_tag :tag => 'input', :attributes => {:name => 'query'} | |
143 | - | |
144 | - Noosfero::Plugin::Manager.any_instance.stubs(:first).with(:search_engine?).returns(true) | |
145 | - get :index | |
146 | - assert_tag :tag => 'input', :attributes => {:name => 'query'} | |
147 | - end | |
148 | - | |
149 | 139 | end | ... | ... |