It has a good tutorial here . But basically what you need to do is:
- Install the RSpec gem with
gem install rspec - Be sure to maintain the correct folder structure, your specification should go into the specification folder
- spec_helper.rb spec , , , :
require_relative "../filename" - _spec.rb spec_helper:
require "spec_helper" - , spec_helper.rb,
expect, , gem install rspec-expectations - , rspec-mocks
gem install rspec-mocks
, , .
, . !