I work on a Rails app with Rspec & Capybara in my test environment.
For few days now, any changes I apply to my CSS is not anymore compiled when I launch my tests. The former CSS is well compiled but not the new one. No problem to load the new JS.
I don't really know where I should look at to solve my problem...
It's likely that you have executed rake assets:precompile
. This compiles assets and saves them in the public/assets
folder.
You need to remove this folder entirely, then the tests will build the assets from source each time.
You can delete the folder manually, or use the Rails task bundle exec rake assets:clobber
.