How to set rspec default settings

Wish you didn’t have to type --color or -format d --color every time you run rspec?
YOU DON’T!
To set your global rspec defaults to always run certain options:

  1. In the terminal type atom ~/.rspec
  2. Set the first line to --format documentation --color

The above instructions will cause rspec to format output and display it in color when you run

bundle exec rspec

Relevant links

2 Likes