[rspec-users] Getting color to work with jruby
bradleyrobertson at gmail.com
Tue Nov 30 12:31:42 EST 2010
I'm having issues getting color 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']
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 :(
I also just realized that running it with MRI 1.9.2 does give me
color, so maybe this belongs in the JRuby forum... but for now, does
anyone know of something needed to get JRuby to output color?
More information about the rspec-users