Browse files

Fixed reflection_for_gps_location test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 5e44eda commit fe6d929bf03650382db06ed63a199f9baa79102d @dhh dhh committed Mar 6, 2005
Showing with 5 additions and 1 deletion.
  1. +5 −1 activerecord/test/reflection_test.rb
View
6 activerecord/test/reflection_test.rb
@@ -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
)

0 comments on commit fe6d929

Please sign in to comment.