Rspec testing with colour

I’m having issues getting colour to work when I’m running my tests. I’m
writing a gem and using RSpec 2.1.0. I’m using JRuby-1.5.3 installed by
RVM on OSX10.6

I have a rake task defined like so:

Rspec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = “spec/**/*_spec.rb”
spec.rspec_opts = [’–color’, ‘–format documentation’]
end

when I run rake spec I can see those opts being passed in:

/Users/bradrobertson/.rvm/rubies/jruby-1.5.3/bin/jruby -S bundle exec rspec
–color --format documentation “spec/modesl/some_mode.rb” … # other files

but I get no color :frowning:

When I run this with MRI-1.9.2 however I do get colour. Anyone know if
there’s something special needed for JRuby to output colour?