thoughtbot/shoulda-matchers — pull request #67 by bloy (2012-03-04 06:52:58+00:00)
Title: association_matcher foreign_key refinement

https://github.com/thoughtbot/shoulda-matchers/issues/66

has_many and has_one tests failed with the reverse association has a
nonstandard name, (eg "belongs_to :author, :class_name => :User)

corrected by having have_one and have_many association tests check for an
:inverse_of on their association, and use the inverse relationship's
foreign key info if it can be found