Why Capypara + Rspect tests still pass even though I delete application.js file?

馋奶兔 提交于 2019-12-02 05:39:17

问题


I have rails app and have some ajax call in application.js file. O have rspec, capybara, webkit, factorygirl and databasecleaner for testing. I wrote feature tests which all pass. Then accidentally delete application.js file and run the tests, they still pass. Please help me to find out why. Thanks so much.

PS: if you downvote my question, please at least tell me why. I have been searching for answers but couldn't find one.


回答1:


Try with

rake assets:clobber

This will remove compiled assets and clean them.



来源:https://stackoverflow.com/questions/40417482/why-capypara-rspect-tests-still-pass-even-though-i-delete-application-js-file

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