5

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.

tkhuynh
  • 941
  • 7
  • 15
  • have you tried with `rake assets:clean` , `rake assets:clobber` and `rake assets:precompile` ? – fabdurso Nov 04 '16 at 09:02
  • @fabersky `rake assets:clobber` worked, those cached file in public folder was the reason. Thanks so much man! – tkhuynh Nov 05 '16 at 01:10

1 Answers1

8

Try with

rake assets:clobber

This will remove compiled assets and clean them.

fabdurso
  • 2,366
  • 5
  • 29
  • 55