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:
parent
3d4c2d0b51
commit
190e08979c
|
@ -44,3 +44,5 @@ RSpec.configure do |config|
|
|||
TestEnv.init
|
||||
end
|
||||
end
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
|
|
Loading…
Reference in New Issue