Commit ae39f09f8360c71524450e1e253d438183d8b6c4

Authored by Daniela Feitosa
1 parent eea240ad

Clear index for enterprise_registration tests

Also use delayed_job for indexing categories
app/models/category.rb
... ... @@ -16,6 +16,7 @@ class Category < ActiveRecord::Base
16 16 acts_as_filesystem
17 17  
18 18 acts_as_searchable :additional_fields => [{:name => {:boost => 2.0}}]
  19 + handle_asynchronously :solr_save
19 20  
20 21 has_many :article_categorizations
21 22 has_many :articles, :through => :article_categorizations
... ...
test/functional/enterprise_registration_controller_test.rb
... ... @@ -9,6 +9,7 @@ class EnterpriseRegistrationControllerTest < ActionController::TestCase
9 9 # all_fixtures:users
10 10 all_fixtures
11 11 def setup
  12 + ActiveSupport::TestCase::setup
12 13 @controller = EnterpriseRegistrationController.new
13 14 @request = ActionController::TestRequest.new
14 15 @response = ActionController::TestResponse.new
... ...