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

前端 未结 8 3167
迷失自我
迷失自我 2021-02-20 03:10

In other o/s RSpec returns nicely coloured results (red, green etc).

However in the windows (Vista) command prompt my text output is just plain old boring white.

8条回答
  •  悲&欢浪女
    2021-02-20 03:51

    The best method is to create a file name .rspec in the root folder of your app and include this single line of code in it:

    --colour

    Done and dusted

提交回复
热议问题