aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/reflection_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb
index 2842cc34bd..cdf7a63118 100644
--- a/activerecord/test/reflection_test.rb
+++ b/activerecord/test/reflection_test.rb
@@ -49,8 +49,12 @@ class ReflectionTest < Test::Unit::TestCase
: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
)