Permalink
Browse files

added assertion for non-standard primary_key on models used in the pr…

…imary_key test
  • Loading branch information...
1 parent 1f7c3d0 commit f4ed56df43b1f88dca46b1a343ede55e649b327e @fx fx committed May 26, 2011
@@ -104,6 +104,9 @@ def test_should_property_quote_string_primary_keys
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

0 comments on commit f4ed56d

Please sign in to comment.