aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_through_associations_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-08-29 13:22:27 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-08-29 13:22:27 -0700
commitc975da941351aad42387a82f0a70bd6f123f987a (patch)
tree766cec5c0f95cfe311942988b49371d20b540025 /activerecord/test/cases/associations/has_many_through_associations_test.rb
parent44046d0782be0737ec68964695a63a56727d17e1 (diff)
downloadrails-c975da941351aad42387a82f0a70bd6f123f987a.tar.gz
rails-c975da941351aad42387a82f0a70bd6f123f987a.tar.bz2
rails-c975da941351aad42387a82f0a70bd6f123f987a.zip
make sure there are actually some categories when running the test
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_many_through_associations_test.rb1
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