diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index e90aa0b..439dead 100644 --- 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') -- libgit2 0.21.2