shoulda matchers has_many through code example Example: shoulda matchers has_many through it { should have_many(:calls).through(:presences) }