diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-10-31 11:21:28 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-10-31 11:21:28 +0000 |
commit | 9a1a32ac2b8a526f543367bc7e8258bbd7e6a164 (patch) | |
tree | a14e5d2b8d0b9f34766a91d3bac9bf78b445eb51 /activerecord/test/cases/associations/has_many_through_associations_test.rb | |
parent | d010fb13ef622bdb781e3134005fc849db4c9bea (diff) | |
download | rails-9a1a32ac2b8a526f543367bc7e8258bbd7e6a164.tar.gz rails-9a1a32ac2b8a526f543367bc7e8258bbd7e6a164.tar.bz2 rails-9a1a32ac2b8a526f543367bc7e8258bbd7e6a164.zip |
Fix naughty trailing whitespace
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 10 |
1 files changed, 5 insertions, 5 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 713c492f5e..4e398751d2 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -456,19 +456,19 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase def test_has_many_through_polymorphic_with_primary_key_option assert_equal [categories(:general)], authors(:david).essay_categories - + authors = Author.joins(:essay_categories).where('categories.id' => categories(:general).id) assert_equal authors(:david), authors.first - + assert_equal [owners(:blackbeard)], authors(:david).essay_owners - + authors = Author.joins(:essay_owners).where("owners.name = 'blackbeard'") assert_equal authors(:david), authors.first end - + def test_has_many_through_with_primary_key_option assert_equal [categories(:general)], authors(:david).essay_categories_2 - + authors = Author.joins(:essay_categories_2).where('categories.id' => categories(:general).id) assert_equal authors(:david), authors.first end |