Commit 3759e8dea2bbbdb1edf46da046e278d16b8b1bf7
1 parent
d6789794
Exists in
master
and in
28 other branches
[postgres-tests] Fixing assets menu integration tests
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
test/integration/assets_menu_test.rb
@@ -17,7 +17,8 @@ class AssetsMenuTest < ActionController::IntegrationTest | @@ -17,7 +17,8 @@ class AssetsMenuTest < ActionController::IntegrationTest | ||
17 | 17 | ||
18 | should 'link to assets inside category root' do | 18 | should 'link to assets inside category root' do |
19 | (1..SearchController::MULTIPLE_SEARCH_LIMIT+1).each do |i| | 19 | (1..SearchController::MULTIPLE_SEARCH_LIMIT+1).each do |i| |
20 | - ent = @category.enterprises.create! :identifier => "ent#{i}", :name => "enterprise#{i}" | 20 | + enterprise = Enterprise.create! :identifier => "ent#{i}", :name => "enterprise#{i}" |
21 | + ProfileCategorization.add_category_to_profile(@category, enterprise) | ||
21 | end | 22 | end |
22 | 23 | ||
23 | get '/cat/parent-category/category-a' | 24 | get '/cat/parent-category/category-a' |