[Git][noosfero/noosfero][master] Remove unnecessary return on test

Daniela Feitosa gitlab at mg.gitlab.com
Mon Aug 8 10:49:18 BRT 2016


Daniela Feitosa pushed to branch master at Noosfero / noosfero


Commits:
0caacfdd by Daniela Soares Feitosa at 2016-08-08T10:47:18-03:00
Remove unnecessary return on test

See merge request !1000

- - - - -


1 changed file:

- plugins/profile_description_block/test/unit/profile_description_block_test.rb


Changes:

=====================================
plugins/profile_description_block/test/unit/profile_description_block_test.rb
=====================================
--- a/plugins/profile_description_block/test/unit/profile_description_block_test.rb
+++ b/plugins/profile_description_block/test/unit/profile_description_block_test.rb
@@ -39,7 +39,7 @@ class ProfileDescriptionBlockViewTest < ActionView::TestCase
 
   should 'return profile description in api_content when description is present' do
     block = ProfileDescriptionBlock.new
-    @person.stubs(:description).returns("This is my description").returns("This is my description")
+    @person.stubs(:description).returns("This is my description")
     block.stubs(:owner).returns(@person)
     assert_equal "This is my description", block.api_content['description']
   end



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/0caacfdd8dc002334c7c8973831436a52b76fdec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160808/4d872fcc/attachment.html>


More information about the Noosfero-dev mailing list