Rails 4 Defaults to Minitest. Frustration Follows
Since I had an assortment of issues trying to create a Rails 3.2 app while 4.0 was installed, I decided to plow through the Bitmaker projects all in Rails 4 and just work out the differences as I went.
When using Guard testing for the Crowdfunder project, I got stuck on an error that kept coming up in the console:
~/.../unit.rb:1037:in `block in process_args': invalid option: --use-color (OptionParser::InvalidOption)
The reason we got this error was that Rails 4 now defaults to Minitest, and so we have to use a different version of guard. In the gemfile, replace 'guard-test' with 'guard-minitest'. After that, go to your Guardfile and copy-paste the following sample Guardfile (from github.com/guard/guard-minitest)
guard :minitest do watch(%r{^test/(.*)\/?test_(.*)\.rb}) watch(%r{^lib/(.*/)?([^/]+)\.rb}) { |m| "test/#{m[1]}test_#{m[2]}.rb" } watch(%r{^test/test_helper\.rb}) { 'test' } end
And that's it. Cheers!












