From 9b4b80b95ad248dd4eaf43975e4b8bb97c60bc95 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 6 Feb 2014 21:08:11 +0000 Subject: [PATCH] rails3: using mock instead of empty array to avoid stubs on nil --- test/unit/comment_helper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/comment_helper_test.rb b/test/unit/comment_helper_test.rb index 545801e..8ea3994 100644 --- a/test/unit/comment_helper_test.rb +++ b/test/unit/comment_helper_test.rb @@ -12,7 +12,7 @@ class CommentHelperTest < ActiveSupport::TestCase self.stubs(:logged_in?).returns(true) self.stubs(:report_abuse).returns('link') self.stubs(:expirable_comment_link).returns('link') - @plugins = [] + @plugins = mock @plugins.stubs(:dispatch).returns([]) end -- libgit2 0.21.2