Skip to content
Browse files

add a comment for sanity of other people to come

  • Loading branch information...
1 parent e64b5da commit e7facb35eb67836d446283bcb7d15d665b1bb668 @tenderlove tenderlove committed Sep 10, 2013
View
8 activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -605,6 +605,10 @@ def test_habtm_respects_select_query_method
end
def test_join_table_alias
+ # FIXME: `references` has no impact on the aliases generated for the join
+ # query. The fact that we pass `:developers_projects_join` to `references`
+ # and that the SQL string contains `developers_projects_join` is merely a
+ # coincidence.
assert_equal(
3,
Developer.references(:developers_projects_join).merge(
@@ -615,6 +619,10 @@ def test_join_table_alias
end
def test_join_with_group
+ # FIXME: `references` has no impact on the aliases generated for the join
+ # query. The fact that we pass `:developers_projects_join` to `references`
+ # and that the SQL string contains `developers_projects_join` is merely a
+ # coincidence.
group = Developer.columns.inject([]) do |g, c|
g << "developers.#{c.name}"
g << "developers_projects_2.#{c.name}"

0 comments on commit e7facb3

Please sign in to comment.
Something went wrong with that request. Please try again.