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:
parent
5e44eda787
commit
fe6d929bf0
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue