Trung Huynh Trung Huynh - 1 year ago 93
Ruby Question

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

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.

Answer Source

Try with

rake assets:clobber

This will remove compiled assets and clean them.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download