Commit 0e26cea3498b45e39eac108bf838a72b66096f7d

Authored by Rodrigo Souto
1 parent 0c1d441e

Fixing noosfero tests

app/views/layouts/application-ng.rhtml
@@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
69 <% end %> 69 <% end %>
70 70
71 </span> 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 <input name="query" size="15" title="<%=_('Search...')%>" onfocus="this.form.className='focused';" onblur="this.form.className=''" /> 73 <input name="query" size="15" title="<%=_('Search...')%>" onfocus="this.form.className='focused';" onblur="this.form.className=''" />
74 <div><%=_('Press <strong>Enter</strong> to send the search query.')%></div> 74 <div><%=_('Press <strong>Enter</strong> to send the search query.')%></div>
75 <%= javascript_tag 'jQuery("#user form input").hint();' %> 75 <%= javascript_tag 'jQuery("#user form input").hint();' %>
app/views/map_balloon/product.rhtml
1 <div id="balloon"> 1 <div id="balloon">
2 - <%= render :partial => 'search/product', :locals => {:product => @product} %> 2 + <%= render :partial => 'search/full_product', :locals => {:product => @product} %>
3 </div> 3 </div>
test/functional/home_controller_test.rb
@@ -136,14 +136,4 @@ class HomeControllerTest &lt; ActionController::TestCase @@ -136,14 +136,4 @@ class HomeControllerTest &lt; ActionController::TestCase
136 assert_no_tag :tag => 'a', :attributes => {:href => '/account/signup'} 136 assert_no_tag :tag => 'a', :attributes => {:href => '/account/signup'}
137 end 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 end 139 end