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`.
This commit is contained in:
Robert Speicher 2015-03-27 15:31:16 -04:00
parent 3d4c2d0b51
commit 190e08979c
1 changed files with 2 additions and 0 deletions

View File

@ -44,3 +44,5 @@ RSpec.configure do |config|
TestEnv.init
end
end
ActiveRecord::Migration.maintain_test_schema!