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