Commit 8e1e7649aec974beddc17037ce3763a921d674de

Authored by Antonio Terceiro
Committed by Leandro Santos
1 parent 59ad38bd

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