From fe6d929bf03650382db06ed63a199f9baa79102d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Mar 2005 11:56:22 +0000 Subject: Fixed reflection_for_gps_location test git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/reflection_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) -- cgit v1.2.3