Commit d6789794735afe2407184c4d05be450aea8fd678
1 parent
2efd9dfb
Exists in
master
and in
28 other branches
[postgres-tests] Fixing search controller tests
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/functional/search_controller_test.rb
@@ -425,7 +425,7 @@ class SearchControllerTest < ActionController::TestCase | @@ -425,7 +425,7 @@ class SearchControllerTest < ActionController::TestCase | ||
425 | should 'show link to article asset in the see all foot link of the articles block in the category page' do | 425 | should 'show link to article asset in the see all foot link of the articles block in the category page' do |
426 | (1..SearchController::MULTIPLE_SEARCH_LIMIT+1).each do |i| | 426 | (1..SearchController::MULTIPLE_SEARCH_LIMIT+1).each do |i| |
427 | a = create_user("test#{i}").person.articles.create!(:name => "article #{i} to be found") | 427 | a = create_user("test#{i}").person.articles.create!(:name => "article #{i} to be found") |
428 | - a.categories << @category | 428 | + ArticleCategorization.add_category_to_article(@category, a) |
429 | end | 429 | end |
430 | 430 | ||
431 | get :category_index, :category_path => [ 'my-category' ] | 431 | get :category_index, :category_path => [ 'my-category' ] |