From 474f1f824efdfd094751c7d0a6356d974cba8a11 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 23 Mar 2015 13:36:23 -0300 Subject: [PATCH] SearchControllerTest: fix test --- test/functional/search_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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