ruby - How to enable colors with rspec when using JRuby or bundle exec? -


i'm trying run rspec's jruby:

rake spec  

which results in:

jruby -s bundle exec rspec --color spec/foo_spec.rb 

no colors show up, removed jruby equation:

bundle exec rspec --color spec/foo_spec.rb 

no colors. how can "--color" option passed through rspec? i've got .rspec file in root directory of project doesn't seem in these cases. however, .rspec file picked-up or used when run:

rspec spec/foo_spec.rb 

any ideas?

adding --tty call fixes problem me:

jruby -s bundle exec rspec --tty --color spec/foo_spec.rb 

the option tells rspec output not written file (in case wouldn't want colorized output), send process instead.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -