jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

spec_helper.coffee generating error/404 #506

Closed tomprats closed 5 years ago

tomprats commented 7 years ago

I get a 404 for http://localhost:3000/javascripts/spec_helper.coffee.js?body=1 on the /teaspoon/default test page. You can easily reproduce the error by creating a fresh rails project, adding the gem "sprockets-cjsx" and gem "teaspoon-mocha" and running the coffee installer.

I believe it is due to the sprockets-cjsx gem changing how coffee is transformed, but I'm not sure how the spec_helper gets turned into spec_helper.coffee.js in the first place.