[Git][noosfero/noosfero][master] fix unit tests for recent content

Leandro Nunes gitlab at mg.gitlab.com
Fri May 13 21:50:24 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
25a90c0e by Leandro Nunes dos Santos at 2016-05-13T21:50:05-03:00
fix unit tests for recent content

- - - - -


1 changed file:

- plugins/recent_content/test/unit/recent_content_block_test.rb


Changes:

=====================================
plugins/recent_content/test/unit/recent_content_block_test.rb
=====================================
--- a/plugins/recent_content/test/unit/recent_content_block_test.rb
+++ b/plugins/recent_content/test/unit/recent_content_block_test.rb
@@ -100,7 +100,7 @@ class RecentContentBlockViewTest < ActionView::TestCase
     block.presentation_mode = 'title_only'
 
     ActionView::Base.any_instance.expects(:block_title).returns("Block Title")
-    ActionView::Base.any_instance.expects(:profile).returns(profile)
+    ActionView::Base.any_instance.stubs(:profile).returns(profile)
 
     content = render_block_content(block)
 
@@ -118,7 +118,7 @@ class RecentContentBlockViewTest < ActionView::TestCase
     block.presentation_mode = 'title_and_abstract'
 
     ActionView::Base.any_instance.expects(:block_title).returns("Block Title")
-    ActionView::Base.any_instance.expects(:profile).returns(profile)
+    ActionView::Base.any_instance.stubs(:profile).returns(profile)
 
     content = render_block_content(block)
 
@@ -136,7 +136,7 @@ class RecentContentBlockViewTest < ActionView::TestCase
     block.presentation_mode = ''
 
     ActionView::Base.any_instance.expects(:block_title).returns("Block Title")
-    ActionView::Base.any_instance.expects(:profile).returns(profile)
+    ActionView::Base.any_instance.stubs(:profile).returns(profile)
 
     content = render_block_content(block)
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/25a90c0eaecd34255bfc36500ac67f6e92d05dad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160514/e9e510f3/attachment-0001.html>


More information about the Noosfero-dev mailing list