Rails unit testing doesn't load fixtures

后端 未结 6 1090
梦谈多话
梦谈多话 2020-12-16 01:54

rake test:units fails in my current application, because the needed data of the fixtures is missing.

If I\'m loading the fixtures manually via rak

6条回答
  •  执念已碎
    2020-12-16 02:42

    I had the same problem. Or rather, the problem was that my fixtures were not current with the database schema. Instead of throwing an exception, rails just used the test database as a fallback solution. Most iffy.

提交回复
热议问题