diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb index 2842cc34bd753b221bb72dd4e5355f0a86f9549c..cdf7a63118a81fe252c84828b939ca70940454c6 100644 --- a/activerecord/test/reflection_test.rb +++ b/activerecord/test/reflection_test.rb @@ -49,8 +49,12 @@ def test_aggregation_reflection :composed_of, :balance, { :class_name => "Money", :mapping => %w(balance amount) }, Customer ) + reflection_for_gps_location = ActiveRecord::Reflection::AggregateReflection.new( + :composed_of, :gps_location, { }, Customer + ) + assert_equal( - [ reflection_for_address, reflection_for_balance ], + [ reflection_for_address, reflection_for_balance, reflection_for_gps_location ], Customer.reflect_on_all_aggregations )