Skip to content

Non-complete shoulda-matchers setup instructions. #101

@olavfosse

Description

@olavfosse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions