diff options
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-x | activerecord/test/associations_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index f94f04e279..844f075f34 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -149,6 +149,10 @@ class HasManyAssociationsTest < Test::Unit::TestCase @signals37.clients_of_firm.each {|f| } end + def test_counting + assert_equal 2, Firm.find_first.clients.count + end + def test_finding assert_equal 2, Firm.find_first.clients.length end |