Reputation: 2011
Im building a ruby on rails aplication, and trying to get my TDD on. I have the following gems installed under my testing environment.
turn <0.8.3
rspec-rails
capybara
guard-rspec
minitest
win32console
Everything seems to be playing nicely together, however, When my test run they aren't in color. Just plain white text. Am I missing something? do I need to initialize something?
I am running on windows 7
Thanks in advance, you guys rock!
Upvotes: 2
Views: 3552
Reputation: 381
Just specify it in the guard block:
guard :rspec, :cli => '--color --format doc' do
As of RSpec Guard 4.0, you need to pass options to cmd
,
guard :rspec, cmd: 'rspec --color --format doc' do
Upvotes: 2
Reputation: 2011
Win32Console no longer works with rspec.
Check this out >>>>
Ansicon
Upvotes: 2
Reputation: 5706
I run on OSX, but here is how I do it. Put a file named .rspec
in the root directory of the project with the following contents:
--colour
Try that.
Upvotes: 2