found out the answer myself: have to do a RSpec.configure do |config| config.tty = true end
in spec_helper.rb Now wonder is there is something similar in cucumber On Jun 6, 3:33 pm, Yi Wen <[email protected]> wrote: > I use Rspec::RakeTask for making the task. I also tried > the exact rspec command in a terminal directly. It outputs the > color... > > On Jun 6, 1:46 pm, "R. Tyler Croy" <[email protected]> wrote: > > > > > > > > > On Wed, 06 Jun 2012, Yi Wen wrote: > > > Here is a screenshot of what I saw if that helps. thanks > > > >http://cl.ly/2G1G3y3l1J1T3b3B2828 > > > Interesting, so it looks like ANSI Color is working properly since the > > bundler > > invocation colors the line. > > > Are you running out of a Rakefile and using a rake task like: > > > task :spec do > > sh 'rspec' > > end > > > I think the problem here is that something is causing rspec not to output > > color > > codes, not that ANSI Color is broken. > > > - R. Tyler Croy > > -------------------------------------- > > Code:http://github.com/rtyler > > Chatter:http://twitter.com/agentdero > > [email protected] > > > application_pgp-signature_part > > < 1KViewDownload
