qunit-rails
qunit-rails copied to clipboard
Rails 4.1 villany
I think 4.1 adds sprockets_better_errors gem and because of this qunit-rails will cause errors like
Sprockets::Rails::Helper::AssetFilteredError in QUnit::Rails::Test#index
Asset filtered out and will not be served: add `Rails.application.config.assets.precompile += %w( test_helper.js )` to `config/initializers/assets.rb` and restart your server
This can be ""fixed"" by adding this line to config/initializers/assets.rb
Rails.application.config.assets.precompile += %w( qunit.css test_helper.css qunit.js test_helper.js)
BUT, I haven't tried YET but I suspect this might BLOW UP IN PRODUCTION because qunit-rails should only be added to the test and development groups in the Gemfile and those assets wont exist on production.