views:

63

answers:

1

I currently working on a project which uses Spree Cart and which has hence forced me to switch from testing with RSpec to testing with Shoulda.

I really like the output I get from rspec and am wanting to get similarly readable output using Shoulda.

Specifically how do I achieve similar output as I would achieve with the rspec command below using shoulda?

$ spec spec --color --format specdoc
+1  A: 

Shoulda is a library within Test::Unit. You can get colored Test::Unit output by installing the redgreen gem

http://github.com/mynyml/redgreen/blob/master/README

Winfield
Worked like a charm! Cheers.In short from the article one needs to: gem install redgreenAnd add the following to test_helper.rb require 'redgreen'Thanks Winfield!
Evolve
Any idea how I can get test output like the specdoc format?
Evolve