Commit 771e41854b0cf78795013ad1aa5991fa011ed070
Committed by
Victor Costa
1 parent
d213c4e9
Exists in
theme-brasil-digital-from-staging
and in
9 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 |