From 0afe79d1cbdf29121634efc922cc430b3227634a Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Wed, 11 Sep 2013 18:00:28 +0200 Subject: [PATCH 1/2] mute LSI output in tests --- test/test_related_posts.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_related_posts.rb b/test/test_related_posts.rb index 6111a2242ae..27529bb3fb5 100644 --- a/test/test_related_posts.rb +++ b/test/test_related_posts.rb @@ -29,6 +29,7 @@ class TestRelatedPosts < Test::Unit::TestCase 'destination' => dest_dir, 'lsi' => true}) end + any_instance_of(Jekyll::RelatedPosts, :display => nil) @site = Site.new(Jekyll.configuration) end From 87de8ddeb46cc493d213f269f4e16bc8747b5f5d Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Thu, 12 Sep 2013 13:26:32 +0200 Subject: [PATCH 2/2] fix test muting to work for Ruby > 1.9 --- test/test_related_posts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_related_posts.rb b/test/test_related_posts.rb index 27529bb3fb5..79409f84883 100644 --- a/test/test_related_posts.rb +++ b/test/test_related_posts.rb @@ -29,7 +29,7 @@ class TestRelatedPosts < Test::Unit::TestCase 'destination' => dest_dir, 'lsi' => true}) end - any_instance_of(Jekyll::RelatedPosts, :display => nil) + any_instance_of(Jekyll::RelatedPosts) { |i| stub(i).display } @site = Site.new(Jekyll.configuration) end