aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/mixin_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-22 14:14:45 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-22 14:14:45 +0000
commitedbeec91ba995d8a025d11a972b5c96edbfa07c6 (patch)
tree8e5d2524cc05c844750400da3b03bb42e2d5643d /activerecord/test/mixin_test.rb
parent4b229d1034b796e316c8e18ada4b8524d0ab3976 (diff)
downloadrails-edbeec91ba995d8a025d11a972b5c96edbfa07c6.tar.gz
rails-edbeec91ba995d8a025d11a972b5c96edbfa07c6.tar.bz2
rails-edbeec91ba995d8a025d11a972b5c96edbfa07c6.zip
Fixed mixin test and fixtures to work with postgresql #353 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/mixin_test.rb')
-rw-r--r--activerecord/test/mixin_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/mixin_test.rb b/activerecord/test/mixin_test.rb
index 01b16cc631..db9695930e 100644
--- a/activerecord/test/mixin_test.rb
+++ b/activerecord/test/mixin_test.rb
@@ -174,7 +174,11 @@ class TreeTest < Test::Unit::TestCase
assert @extra
assert_equal @extra.parent, @tree_1
- assert_equal [@tree_2, @tree_4, @extra], @tree_1.children
+
+ assert_equal 3, @tree_1.children.size
+ assert @tree_1.children.include?(@extra)
+ assert @tree_1.children.include?(@tree_2)
+ assert @tree_1.children.include?(@tree_4)
end