#Setting Up RSpec
gem install rspec
- In the project root set up the following file structure:
spec/lib/class_spec.rb
lib/class.rb goes in lib
- Configure RSpec for color tests. In the root folder
touch .rspec
and insert "--color" - To reference our classes, tests files need this at the top
require_relative '../../lib/class.rb'
- To run the test type
rspec spec
from the root directory