How do I globally configure RSpec to keep the '--color' and '--format specdoc' options turned on

前端 未结 6 834
日久生厌
日久生厌 2020-12-22 17:42

How do I set global configuration for RSpec in Ubuntu.

Specifically so, --color and --format specdoc stay turned on, across all my projects (ie every time I run rspe

6条回答
  •  无人及你
    2020-12-22 18:04

    As you can see in the docs here, the intended use is creating ~/.rspec and in it putting your options, such as --color.

    To quickly create an ~/.rspec file with the --color option, just run:

    echo '--color' >> ~/.rspec 
    

提交回复
热议问题