我为测试环境设置了:memory:数据库 adapter: sqlite3并始终在SystemTest安装时运行db迁移。但是,在浏览器启动后,看起来Rails应用数据库被重置了,因此测试抛出错误SQLite3::SQLException: no such table。即使我尝试在下面的测试用例上迁移db,由于上述原因,它仍然失败。t
.* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROMFinished in 0.03 seconds (files took 1.5 seconds to load)我创建了test_database并运行了迁移