Commit 9dedafae737ab3f66536b6f2b12df3247a04df64

Authored by Rafael Martins
1 parent d00cb722

Small fix for SearchHelperTest

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
test/unit/search_helper_test.rb
@@ -217,6 +217,7 @@ class SearchHelperTest < ActiveSupport::TestCase @@ -217,6 +217,7 @@ class SearchHelperTest < ActiveSupport::TestCase
217 params = {:order_by => 'Relevance'} 217 params = {:order_by => 'Relevance'}
218 218
219 stubs(:params).returns(params) 219 stubs(:params).returns(params)
  220 + stubs(:logged_in?).returns(false)
220 stubs(:options_for_select).with(instance_of(Array), params[:order_by]).returns('<options_for_select>') 221 stubs(:options_for_select).with(instance_of(Array), params[:order_by]).returns('<options_for_select>')
221 stubs(:select_tag).with(regexp_matches(/#{asset}/), '<options_for_select>', anything).returns('<select_tag>') 222 stubs(:select_tag).with(regexp_matches(/#{asset}/), '<options_for_select>', anything).returns('<select_tag>')
222 expects(:content_tag).with(anything, regexp_matches(/<select_tag>/), anything).returns('<final_content>') 223 expects(:content_tag).with(anything, regexp_matches(/<select_tag>/), anything).returns('<final_content>')