summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 7ab9c8c9..b7fe2b58 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -2,6 +2,12 @@ ENV["RAILS_ENV"] = "test"
2require File.expand_path(File.dirname(__FILE__) + "/../config/environment") 2require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3require 'rails/test_help' 3require 'rails/test_help'
4 4
5# rails/test_help calls maintain_test_schema!, which reloads db/schema.rb
6# in this process when a migration is pending. That recreates
7# page_translations and drops the search_vector trigger the initializer
8# installed at boot. Reinstall it here, after any such reload.
9Page.ensure_search_vector_trigger!
10
5module ActiveRecord 11module ActiveRecord
6 class FixtureSet 12 class FixtureSet
7 class << self 13 class << self