After upgrading a Rails app to Rails 5, running RSpec tests gives me the following error:
rails aborted! ActiveRecord::NoEnvironmentInSchemaError: Environm
For me, this error was followed by a similar one asking for a migration.
This did the trick: rails db:migrate RAILS_ENV=test
rails db:migrate RAILS_ENV=test