Commit 25a90c0eaecd34255bfc36500ac67f6e92d05dad
1 parent
e09a3a93
Exists in
ratings_minor_fixes
and in
4 other branches
fix unit tests for recent content
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
plugins/recent_content/test/unit/recent_content_block_test.rb
... | ... | @@ -100,7 +100,7 @@ class RecentContentBlockViewTest < ActionView::TestCase |
100 | 100 | block.presentation_mode = 'title_only' |
101 | 101 | |
102 | 102 | ActionView::Base.any_instance.expects(:block_title).returns("Block Title") |
103 | - ActionView::Base.any_instance.expects(:profile).returns(profile) | |
103 | + ActionView::Base.any_instance.stubs(:profile).returns(profile) | |
104 | 104 | |
105 | 105 | content = render_block_content(block) |
106 | 106 | |
... | ... | @@ -118,7 +118,7 @@ class RecentContentBlockViewTest < ActionView::TestCase |
118 | 118 | block.presentation_mode = 'title_and_abstract' |
119 | 119 | |
120 | 120 | ActionView::Base.any_instance.expects(:block_title).returns("Block Title") |
121 | - ActionView::Base.any_instance.expects(:profile).returns(profile) | |
121 | + ActionView::Base.any_instance.stubs(:profile).returns(profile) | |
122 | 122 | |
123 | 123 | content = render_block_content(block) |
124 | 124 | |
... | ... | @@ -136,7 +136,7 @@ class RecentContentBlockViewTest < ActionView::TestCase |
136 | 136 | block.presentation_mode = '' |
137 | 137 | |
138 | 138 | ActionView::Base.any_instance.expects(:block_title).returns("Block Title") |
139 | - ActionView::Base.any_instance.expects(:profile).returns(profile) | |
139 | + ActionView::Base.any_instance.stubs(:profile).returns(profile) | |
140 | 140 | |
141 | 141 | content = render_block_content(block) |
142 | 142 | ... | ... |