summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-03-27 15:31:16 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-03-27 15:31:16 -0400
commit190e08979c25177e47a4055bc9b59e58bfcf3134 (patch)
tree217f6e90bb09abc83a8adb6a97fac1bb9175d785 /spec/spec_helper.rb
parent3d4c2d0b510f15ac3f0abe6ba4468dd019b06278 (diff)
downloadgitlab-ce-190e08979c25177e47a4055bc9b59e58bfcf3134.tar.gz
Add ActiveRecord::Migration.maintain_test_schema! to spec_helper
New in Rails 4.1, this eliminates spec failures due to forgetting to run `db:test:prepare`.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index eaec2198dc8..53ccaa4fd67 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -44,3 +44,5 @@ RSpec.configure do |config|
TestEnv.init
end
end
+
+ActiveRecord::Migration.maintain_test_schema!