Closed mpelzsherman closed 9 years ago
I have the same issue and I can tell you the problem is that the files being loaded by requirejs have not being copied to the tmp/jasmine folder, and the runner.rb is trying to compile all the JS assets into a single file which won't work without running r.js and doing a custom optimized file. Which could affect the code we are trying to test. So we need the full asset pipeline running or to copy all js assets to the tmp/jasmine.
@searls, Is there a way that we can stop trying to do the optimize to a single file and just copy all app/assets/javascripts and vendor/assets/javascript to the tmp/jasmine or allow asset pipeline to run completely like it does in the browser?
@mpelzsherman, I made the changes needed to actually use requirejs properly... Check out the pull request.
Closing this because I don't intend to support require.js in jasmine-rails going forward. Sorry!
Thanks anyway @AntiFish03 ! I'll check out your PR - could be useful for me since we are stuck with require.js for now.
rails 3.2, ruby-1.9.3-p327, phantomjs 1.9.7, jasmine-rails v0.10.0
Hitting http://localhost:3000/jasmine in a browser works fine, but running from the command line does not find the tests and yields an error.
Here is the output from
bundle exec rake spec:javascript
. Any suggestions would be greatly appreciated!