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