Rails pages_controller_spec.rb test shouldn't be failing but is, error?

落爺英雄遲暮 提交于 2019-12-02 10:11:54

Downloaded your code and ran:

........
8 examples, 0 failures
Finished in 0.18184 seconds

It is running the GET 'help', so I think you're running this in autotest and it is not reloading. Possible?

Your code is fine. The issue is that your previous code got cached. By quitting terminal and opening a new window, you are effectively clearing your cache. You might run into the same issues if you don't turn off caching in the test environment. Go to config/environments/test.rb and change config.cache_classes = true to config.cache_classes = false

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!