testing-rails icon indicating copy to clipboard operation
testing-rails copied to clipboard

Non-complete shoulda-matchers setup instructions.

Open olavfosse opened this issue 5 years ago • 0 comments

Adding

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
    with.library :rails
  end
end

to the end of rails_helper.rb is required to use shoulda_matchers in your code. This is not written anywhere in the book.

The sub-chapter introducing shoulda_matchers is Validations and it starts at page 37.

Thanks a lot for publishing the book for free.

Olav

olavfosse avatar Feb 19 '20 16:02 olavfosse