RSpec matcher for ActiveRecord associations.
Add this line to your application's Gemfile:
gem 'association_matcher', group: :test
And then execute:
$ bundle
Or install it yourself as:
$ gem install association_matcher