Fixed reflection_for_gps_location test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-03-06 11:56:22 +00:00
parent 5e44eda787
commit fe6d929bf0
1 changed files with 5 additions and 1 deletions

View File

@ -49,8 +49,12 @@ class ReflectionTest < Test::Unit::TestCase
:composed_of, :balance, { :class_name => "Money", :mapping => %w(balance amount) }, Customer :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( assert_equal(
[ reflection_for_address, reflection_for_balance ], [ reflection_for_address, reflection_for_balance, reflection_for_gps_location ],
Customer.reflect_on_all_aggregations Customer.reflect_on_all_aggregations
) )