aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-xactiverecord/test/associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index 4cf4868ef7..05daf9b9c1 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -734,9 +734,9 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
active_record = Project.find(1)
assert !active_record.developers.empty?
assert_equal 2, active_record.developers.size
- assert_equal david.name, active_record.developers.first.name
+ assert active_record.developers.include?(david)
end
-
+
def test_adding_single
jamis = Developer.find(2)
jamis.projects.reload # causing the collection to load