Fixed reflection_for_gps_location test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 5e44eda7
......@@ -49,8 +49,12 @@ def test_aggregation_reflection
: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
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册