diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 11:56:22 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 11:56:22 +0000 |
commit | fe6d929bf03650382db06ed63a199f9baa79102d (patch) | |
tree | bc2603b4d353e2eecf071ca84e23d8f97e1a6083 /activerecord/test | |
parent | 5e44eda7872c6ee33e0d09a4b9fd78896e14b95a (diff) | |
download | rails-fe6d929bf03650382db06ed63a199f9baa79102d.tar.gz rails-fe6d929bf03650382db06ed63a199f9baa79102d.tar.bz2 rails-fe6d929bf03650382db06ed63a199f9baa79102d.zip |
Fixed reflection_for_gps_location test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/reflection_test.rb | 6 |
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 ) |