thoughtbot/shoulda-matchers — Issue #65: has_many and has_one tests fail when the reverse association has a nonstandard name
Author: bloy
Created: 2012-03-04 06:38:50+00:00
State: open

The foreign_key method returns an incorrect column name when a corresponding belongs_to uses a nonstandard foreign key name.

An example:

```ruby
class User < ActiveRecord::Base
has_many
```