diff options
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index b8442656ee..839a7852fc 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -104,6 +104,9 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase def test_proper_usage_of_primary_keys_and_join_table setup_data_for_habtm_case + assert_equal 'country_id', Country.primary_key + assert_equal 'treaty_id', Treaty.primary_key + country = Country.first assert_equal 1, country.treaties.count end |