Commit 82e6a923aaaa9036c902d1766eb0eb064e6abf19
1 parent
37e8887a
Exists in
master
and in
29 other branches
display_content: fix broken test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/display_content/test/unit/display_content_block_test.rb
... | ... | @@ -547,7 +547,7 @@ class DisplayContentBlockTest < ActiveSupport::TestCase |
547 | 547 | a1 = fast_create(PluginArticle, :name => 'test article 1', :profile_id => profile.id) |
548 | 548 | |
549 | 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 | 552 | block = DisplayContentBlock.new |
553 | 553 | box = mock() | ... | ... |