Commit 38aeb19a5d9bc8914a40f9ae11326123e1b7fccd

Authored by Rafael Martins
1 parent 60c4a40c

Fix for AssetsMenuTest

* 'See all' only appears if MULTIPLE_SEARCH_LIMIT is reached
Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
test/integration/assets_menu_test.rb
... ... @@ -16,7 +16,9 @@ class AssetsMenuTest < ActionController::IntegrationTest
16 16 end
17 17  
18 18 should 'link to assets inside category root' do
19   - ent = @category.enterprises.create! :identifier => 'ent1', :name => 'enterprise1'
  19 + (1..SearchController::MULTIPLE_SEARCH_LIMIT+1).each do |i|
  20 + ent = @category.enterprises.create! :identifier => "ent#{i}", :name => "enterprise#{i}"
  21 + end
20 22  
21 23 get '/cat/parent-category/category-a'
22 24 assert_tag :tag => 'a', :attributes => { :href => '/search/enterprises/parent-category/category-a' }
... ...