[noosfero/noosfero][master] SearchControllerTest: fix test

Antonio Terceiro gitlab at gitlab.com
Mon Mar 23 13:36:38 BRT 2015


Antonio Terceiro pushed to master at Noosfero / noosfero


Commits:
474f1f82 by Antonio Terceiro at 2015-03-23T13:36:23Z
SearchControllerTest: fix test

- - - - -


1 changed file:

- test/functional/search_controller_test.rb


Changes:

=====================================
test/functional/search_controller_test.rb
=====================================
--- a/test/functional/search_controller_test.rb
+++ b/test/functional/search_controller_test.rb
@@ -202,7 +202,7 @@ class SearchControllerTest < ActionController::TestCase
   end
 
   should 'paginate enterprise listing' do
-    @controller.expects(:limit).returns(1)
+    @controller.expects(:limit).returns(1).at_least_once
     ent1 = create_profile_with_optional_category(Enterprise, 'teste 1')
     ent2 = create_profile_with_optional_category(Enterprise, 'teste 2')
 


View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/474f1f824efdfd094751c7d0a6356d974cba8a11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150323/1f0b6b82/attachment.html>


More information about the Noosfero-dev mailing list