Closed remino closed 10 years ago
I tried manually loading the required gems for Sass to work during tests, even if I don't need it at the moment. Doing this requires me to load the bootstrap-sass
gem manually in config/application.rb
, except for the test environment. It worked for a while, then failed again.
No idea what can cause this. Can you please provide a sample application that reproduces the error?
I'm guessing this is similar to sstephenson/sprockets#599
Turns out it was something on my end.
I tried to replicate the issue with a new app, using the same Gemfile
and Gemfile.lock
files, but it worked without a problem. Then, I found a local lib/sass.rb
in my defective app.
This means anything requiring sass
would load this local file rather than the actual gem, because of the load path. Since that didn't load sass/importers
, I got the problem I mentioned above.
I renamed the conflicting file and everything works fine now.
Hi,
My Rails app is working fine, but when running the tests, RSpec fails while starting up with the following error:
uninitialized constant Sass::Importers (NameError)
. Any ideas on what may be causing this?Here is the backtrace (excluding my app):
Gemfile
:Gemfile.lock
: