diff options
author | Karthik Krishnan <info@karthiks.in> | 2008-12-20 20:52:48 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-20 21:08:51 +0000 |
commit | 75a133f92ff7e27b83032babf829d8a58803bb3c (patch) | |
tree | b6d68bff1f29febd1eb3b91987d6aaff9a4963fc /activerecord/test/cases/associations | |
parent | c092dbef50ba207174a94b7e0beb7782a3d86649 (diff) | |
download | rails-75a133f92ff7e27b83032babf829d8a58803bb3c.tar.gz rails-75a133f92ff7e27b83032babf829d8a58803bb3c.tar.bz2 rails-75a133f92ff7e27b83032babf829d8a58803bb3c.zip |
Fix has many through not quoting table names [#1163 state:resolved]
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 0bfda337b2..ad6a5d6840 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -204,6 +204,10 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase assert_equal 2, people(:michael).posts.count(:include => :readers) end + def test_inner_join_with_quoted_table_name + assert_equal 2, people(:michael).jobs.size + end + def test_get_ids assert_equal [posts(:welcome).id, posts(:authorless).id].sort, people(:michael).post_ids.sort end |