Monday, May 19, 2014

Rails 4 MiniTest error

I got the following cryptic error on a new project:

~/…/unit.rb:1037:in `block in process_args’: invalid option: —use-color (OptionParser::InvalidOption)

Thanks to this blog for pointing the way.

I did not copy/paste the suggested code though.  I just ran :

guard init minitest

Strange Bundler error, noexec.rb:5:in `pwd'

I got the following after running "bundle install" :
rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:5:in `pwd': No such file or directory - getcwd (Errno::ENOENT)

Thanks to stackoverflow and this blog I cd'd into the parent directory and then back into my working directory and bundler worked.