Install and configure

We have covered how to install RSpec in detail during the prep course, so we will keep this short.

There are two ways of installing RSpec, You either run gem install rspec in your terminal and then rspec --init in your terminal in order for it to create all config file .rspec and spec_helper.rb

The second way is to add the rspec gem to your Gemfile, run bundle in your terminal and rspec --init once rspec, is installed.

In order to configure RSpec you can run rspec --help in the terminal and it will provide you wit a lot of options that you can use in the .rspec file to configure your output from when the test suites run.

Last updated