How do I get colour with Windows command prompt using RSpec in Ruby?

I had to install ansicon, and now everything is fine. (Even in my Aptana terminal).

Install ansicon description: http://qastuffs.blogspot.com/2011/02/how-to-install-ansicon-for-cucumber-to.html


Did you specify '--color' in your rake rspec tasks' spec_opts? Something like this..

  Spec::Rake::SpecTask.new(:your_task_name) do |t|
    t.spec_opts = ["--color"]
    t.spec_files = [] # List of spec files
  end

UPDATE: Win32Console no longer works with rspec. ANSICON recommended. https://github.com/rspec/rspec-rails/issues/487#issuecomment-3556806