diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-29 13:22:27 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-08-29 13:22:27 -0700 |
commit | c975da941351aad42387a82f0a70bd6f123f987a (patch) | |
tree | 766cec5c0f95cfe311942988b49371d20b540025 | |
parent | 44046d0782be0737ec68964695a63a56727d17e1 (diff) | |
download | rails-c975da941351aad42387a82f0a70bd6f123f987a.tar.gz rails-c975da941351aad42387a82f0a70bd6f123f987a.tar.bz2 rails-c975da941351aad42387a82f0a70bd6f123f987a.zip |
make sure there are actually some categories when running the test
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 788177ee15..45087fdf8a 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -40,6 +40,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase post = Post.includes(:scategories).first post2 = Post.includes(:categories).first + assert_operator post.categories.length, :>, 0 assert_equal post2.categories, post.categories end |