Today's fun fact: if you're running jasmine-headless-webkit through
multi-term.el in Aquamacs (native port of Emacs to Mac OS X), you
might see the following error:
duncan$ bundle exec jasmine-headless-webkit
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common192.rb:53:
warning: already initialized constant WFKV
[jasmine-headless-webkit]
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/jasmine-headless-webkit-00468fc1b3b7/vendor/assets/javascripts/beautify-html.js
has a invalid US-ASCII byte sequence (Sprockets::EncodingError)
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/sprockets-2.0.1/lib/sprockets/utils.rb:18:in
`block in read_unicode'
This is because multi-term doesn't load all the normal Bash config
files on OSX (why????). The fix is:
duncan$ export LANG=en_AU.UTF-8 duncan$ be
jasmine-headless-webkit
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common192.rb:53:
warning: already initialized constant WFKV
Running Jasmine specs... .............. PASS: 14 tests, 0
failures, 0.038 secs. Test ordering seed: --seed 1857
Today's fun fact: if you're running jasmine-headless-webkit through multi-term.el in Aquamacs (native port of Emacs to Mac OS X), you might see the following error: duncan$ bundle exec jasmine-headless-webkit /Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common192.rb:53: warning: already initialized constant WFKV [jasmine-headless-webkit] /Users/duncan/.rvm/gems/ruby-1.9.2-p290/bundler/gems/jasmine-headless-webkit-00468fc1b3b7/vendor/assets/javascripts/beautify-html.js has a invalid US-ASCII byte sequence (Sprockets::EncodingError)
/Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/sprockets-2.0.1/lib/sprockets/utils.rb:18:in `block in read_unicode' This is because multi-term doesn't load all the normal Bash config files on OSX (why????). The fix is: duncan$ export LANG=en_AU.UTF-8 duncan$ be jasmine-headless-webkit /Users/duncan/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common192.rb:53: warning: already initialized constant WFKV Running Jasmine specs... .............. PASS: 14 tests, 0 failures, 0.038 secs. Test ordering seed: --seed 1857