[Git][noosfero/noosfero][master] remove unit test causing colateral errors

Joenio Costa gitlab at mg.gitlab.com
Wed Mar 16 12:16:19 BRT 2016


Joenio Costa pushed to branch master at Noosfero / noosfero


Commits:
23bd8bbc by Joenio Costa at 2016-03-16T12:10:17-03:00
remove unit test causing colateral errors

related issue: #181

- - - - -


1 changed file:

- test/unit/profile_list_block_test.rb


Changes:

=====================================
test/unit/profile_list_block_test.rb
=====================================
--- a/test/unit/profile_list_block_test.rb
+++ b/test/unit/profile_list_block_test.rb
@@ -22,28 +22,6 @@ class ProfileListBlockTest < ActiveSupport::TestCase
 
   include BoxesHelper
 
-  should 'list people' do
-    env = fast_create(Environment)
-
-    person1 = create_user('testperson1', :environment => env).person
-    person2 = create_user('testperson2', :environment => env).person
-    person3 = create_user('testperson3', :environment => env).person
-
-    block = ProfileListBlock.new
-    block.stubs(:owner).returns(env)
-
-    ApplicationHelper.class_eval do
-      def profile_image_link( profile, size=:portrait, tag='li', extra_info = nil )
-        "<#{profile.name}>"
-      end
-    end
-
-    content = render_block_content(block)
-    assert_match '<testperson1>', content
-    assert_match '<testperson2>', content
-    assert_match '<testperson3>', content
-  end
-
   should 'list private profiles' do
     env = fast_create(Environment)
     env.boxes << Box.new



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/23bd8bbc2293d5123bbcb4b416143934edf23abc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160316/a873571f/attachment.html>


More information about the Noosfero-dev mailing list