From c975da941351aad42387a82f0a70bd6f123f987a Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 29 Aug 2013 13:22:27 -0700 Subject: make sure there are actually some categories when running the test --- .../test/cases/associations/has_many_through_associations_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb') 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 -- cgit v1.2.3