diff --git a/test/unit/category_finder_test.rb b/test/unit/category_finder_test.rb index 7ec2a54..e48f121 100644 --- a/test/unit/category_finder_test.rb +++ b/test/unit/category_finder_test.rb @@ -90,6 +90,8 @@ class CategoryFinderTest < ActiveSupport::TestCase c4 = Category.create!(:name => 'child 2', :environment => Environment.default, :parent => c1) c5 = Category.create!(:name => 'grandchild 2', :environment => Environment.default, :parent => c4) + c1.reload + assert_equivalent [c1,c2,c3,c4,c5].map(&:id), CategoryFinder.new(c1).category_ids end @@ -98,6 +100,8 @@ class CategoryFinderTest < ActiveSupport::TestCase child = Category.create!(:name => 'child category', :environment => Environment.default, :parent => parent) p1 = create_user('people_1').person; p1.name = 'a beautiful person'; p1.categories << child; p1.save! + parent.reload + f = CategoryFinder.new(parent) assert_includes f.find(:people, 'beautiful'), p1 end diff --git a/test/unit/rss_feed_test.rb b/test/unit/rss_feed_test.rb index 45be7c2..bd95ee8 100644 --- a/test/unit/rss_feed_test.rb +++ b/test/unit/rss_feed_test.rb @@ -90,6 +90,7 @@ class RssFeedTest < Test::Unit::TestCase a3_2 = a3.children.build(:name => 'article 3.2', :parent => a3, :profile => profile); a3_2.save! a3_2_1 = a3_2.children.build(:name => 'article 3.2.1', :parent => a3_2, :profile => profile); a3_2_1.save! + a3.reload feed = RssFeed.new(:name => 'testfeed') feed.parent = a3 feed.profile = profile -- libgit2 0.21.2