当缺少迁移时,您应该会收到一条消息。
但这仅在您使用 rails_helper 时才有效。我怀疑您需要在 spec 文件顶部添加 require "rails_helper"。这也可能解决您遇到的其他问题。
编辑:嗯……也许我们应该在 .rspec 文件中添加 --require rails_helper,这样就不需要手动添加了:thinking:
当缺少迁移时,您应该会收到一条消息。
但这仅在您使用 rails_helper 时才有效。我怀疑您需要在 spec 文件顶部添加 require "rails_helper"。这也可能解决您遇到的其他问题。
编辑:嗯……也许我们应该在 .rspec 文件中添加 --require rails_helper,这样就不需要手动添加了:thinking: