Commit 82e6a923aaaa9036c902d1766eb0eb064e6abf19

Authored by Victor Costa
1 parent 37e8887a

display_content: fix broken test

plugins/display_content/test/unit/display_content_block_test.rb
@@ -547,7 +547,7 @@ class DisplayContentBlockTest < ActiveSupport::TestCase @@ -547,7 +547,7 @@ class DisplayContentBlockTest < ActiveSupport::TestCase
547 a1 = fast_create(PluginArticle, :name => 'test article 1', :profile_id => profile.id) 547 a1 = fast_create(PluginArticle, :name => 'test article 1', :profile_id => profile.id)
548 548
549 env = fast_create(Environment) 549 env = fast_create(Environment)
550 - env.enable_plugin(Plugin1) 550 + Noosfero::Plugin::Manager.any_instance.stubs(:enabled_plugins).returns([Plugin1.new])
551 551
552 block = DisplayContentBlock.new 552 block = DisplayContentBlock.new
553 box = mock() 553 box = mock()