From 6636eb16c56a8a44be8fb3ec005cfca52b0b5b4c Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 26 Mar 2006 00:36:55 +0000 Subject: Fixed issue that kept :select options from being scoped [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations_join_model_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/associations_join_model_test.rb') diff --git a/activerecord/test/associations_join_model_test.rb b/activerecord/test/associations_join_model_test.rb index 08b460995e..5f8ac7e0c0 100644 --- a/activerecord/test/associations_join_model_test.rb +++ b/activerecord/test/associations_join_model_test.rb @@ -316,6 +316,10 @@ class AssociationsJoinModelTest < Test::Unit::TestCase assert_equal new_author, authors(:david).reload.favorite_authors.first end + def test_has_many_through_uses_correct_attributes + assert_nil posts(:thinking).tags.find_by_name("General").attributes["tag_id"] + end + private # create dynamic Post models to allow different dependency options def find_post_with_dependency(post_id, association, association_name, dependency) -- cgit v1.2.3