From the course: Ruby: Testing with RSpec

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuration

Configuration - Ruby Tutorial

From the course: Ruby: Testing with RSpec

Start my 1-month free trial

Configuration

- Now that we have RSpec installed, I want us to talk a bit about how you can configure RSpec. If you RSpec space --help, it'll give you all sorts of information about all the different configuration options. But I'm gonna limit it to just the five most important options for now. Each one of these five lines has a binary set of options. You can either choose no color, or you can choose color. It's one one or the other with the comma separating them. And I've put the default option on the left, the first option. So by default, RSpec will be set to no color. If we want to change it to color, then we simply have to provide the argument --color and then it will be in color. Now what do each of these mean? Well color determines whether or not the output that comes in is multicolor or not. Does it have colors like green, yellow, and red? Or is it all in one single color of output? Format determines what the format of the output looks like. We'll take a look at progress and documentation a…

Contents