From ae39f09f8360c71524450e1e253d438183d8b6c4 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Fri, 16 Mar 2012 13:31:06 -0300 Subject: [PATCH] Clear index for enterprise_registration tests --- app/models/category.rb | 1 + test/functional/enterprise_registration_controller_test.rb | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/app/models/category.rb b/app/models/category.rb index ee73f35..7c124ea 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -16,6 +16,7 @@ class Category < ActiveRecord::Base acts_as_filesystem acts_as_searchable :additional_fields => [{:name => {:boost => 2.0}}] + handle_asynchronously :solr_save has_many :article_categorizations has_many :articles, :through => :article_categorizations diff --git a/test/functional/enterprise_registration_controller_test.rb b/test/functional/enterprise_registration_controller_test.rb index 2771fc9..ef56bf2 100644 --- a/test/functional/enterprise_registration_controller_test.rb +++ b/test/functional/enterprise_registration_controller_test.rb @@ -9,6 +9,7 @@ class EnterpriseRegistrationControllerTest < ActionController::TestCase # all_fixtures:users all_fixtures def setup + ActiveSupport::TestCase::setup @controller = EnterpriseRegistrationController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new -- libgit2 0.21.2