Commit 9b4b80b95ad248dd4eaf43975e4b8bb97c60bc95
1 parent
85f72eef
Exists in
master
and in
29 other branches
rails3: using mock instead of empty array to avoid stubs on nil
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/comment_helper_test.rb
@@ -12,7 +12,7 @@ class CommentHelperTest < ActiveSupport::TestCase | @@ -12,7 +12,7 @@ class CommentHelperTest < ActiveSupport::TestCase | ||
12 | self.stubs(:logged_in?).returns(true) | 12 | self.stubs(:logged_in?).returns(true) |
13 | self.stubs(:report_abuse).returns('<a href="#">link</a>') | 13 | self.stubs(:report_abuse).returns('<a href="#">link</a>') |
14 | self.stubs(:expirable_comment_link).returns('<a href="#">link</a>') | 14 | self.stubs(:expirable_comment_link).returns('<a href="#">link</a>') |
15 | - @plugins = [] | 15 | + @plugins = mock |
16 | @plugins.stubs(:dispatch).returns([]) | 16 | @plugins.stubs(:dispatch).returns([]) |
17 | end | 17 | end |
18 | 18 |