即使删除了application.js文件,为什么Capypara + Rspect测试仍然通过? [英] Why Capypara + Rspect tests still pass even though I delete application.js file?

查看:86
本文介绍了即使删除了application.js文件,为什么Capypara + Rspect测试仍然通过?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Rails应用程序,并且在application.js文件中有一些ajax调用。可以使用rspec,capybara,webkit,factorygirl和databasecleaner进行测试。我编写了全部通过的功能测试。然后不小心删除了application.js文件并运行测试,它们仍然通过。请帮助我找出原因。

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:如果您不赞成我的问题,请至少告诉我原因。我一直在寻找答案,但找不到答案。

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

推荐答案

尝试

rake assets:clobber

这将删除整理并清理它们。

This will remove compiled assets and clean them.

这篇关于即使删除了application.js文件,为什么Capypara + Rspect测试仍然通过?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆