You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test passes but if I change the argument of with_foreign_key to anything else (e.g. baz_id) the spec fails with the following error message:
Expected Foo to have a belongs_to association called pub ()
If the class_name argument is changed to be incorrect there is a specific error message in the parentheses for the submatcher (pub should resolve to Baz for class_name), so I'm guessing that somehow the following lines are no longer working as expected:
Steps to replicate:
The test passes but if I change the argument of
with_foreign_key
to anything else (e.g.baz_id
) the spec fails with the following error message:If the
class_name
argument is changed to be incorrect there is a specific error message in the parentheses for the submatcher (pub should resolve to Baz for class_name
), so I'm guessing that somehow the following lines are no longer working as expected:shoulda-matchers/lib/shoulda/matchers/active_record/association_matcher.rb
Lines 1404 to 1407 in b7e0218
Hope that helps!
The text was updated successfully, but these errors were encountered: