diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index fc9df8c..467b243 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -21,6 +21,11 @@ class RelationTest < ActiveRecord::TestCase fixtures :authors, :topics, :entrants, :developers, :companies, :developers_projects, :accounts, :categories, :categorizations, :posts, :comments, :tags, :taggings, :cars, :minivans + def test_do_not_duplicate_table_name_used_in_has_many_through_and_joins + author = Author.first + assert_nothing_raised { author.comments.joins(:post).order(Post.arel_table[:title]).first } + end + def test_do_not_double_quote_string_id van = Minivan.last assert van