From 87de8ddeb46cc493d213f269f4e16bc8747b5f5d Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Thu, 12 Sep 2013 13:26:32 +0200 Subject: [PATCH] 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 27529bb3..79409f84 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