Commit 474f1f824efdfd094751c7d0a6356d974cba8a11
1 parent
f145ca09
Exists in
master
and in
29 other branches
SearchControllerTest: fix test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/functional/search_controller_test.rb
@@ -202,7 +202,7 @@ class SearchControllerTest < ActionController::TestCase | @@ -202,7 +202,7 @@ class SearchControllerTest < ActionController::TestCase | ||
202 | end | 202 | end |
203 | 203 | ||
204 | should 'paginate enterprise listing' do | 204 | should 'paginate enterprise listing' do |
205 | - @controller.expects(:limit).returns(1) | 205 | + @controller.expects(:limit).returns(1).at_least_once |
206 | ent1 = create_profile_with_optional_category(Enterprise, 'teste 1') | 206 | ent1 = create_profile_with_optional_category(Enterprise, 'teste 1') |
207 | ent2 = create_profile_with_optional_category(Enterprise, 'teste 2') | 207 | ent2 = create_profile_with_optional_category(Enterprise, 'teste 2') |
208 | 208 |