Commit d0894925de1da8116869bb919142e2d2c8913982
1 parent
c9eccb09
Exists in
master
and in
29 other branches
box-test: fix test due to method to_css_class_name improvement
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/box_test.rb
@@ -101,7 +101,7 @@ class BoxTest < ActiveSupport::TestCase | @@ -101,7 +101,7 @@ class BoxTest < ActiveSupport::TestCase | ||
101 | Noosfero::Plugin::Manager.any_instance.stubs(:enabled_plugins).returns([SomePlugin.new]) | 101 | Noosfero::Plugin::Manager.any_instance.stubs(:enabled_plugins).returns([SomePlugin.new]) |
102 | 102 | ||
103 | blocks = Box.new(:position => 1).acceptable_blocks | 103 | blocks = Box.new(:position => 1).acceptable_blocks |
104 | - assert blocks.include?('plugin-block') | 104 | + assert blocks.include?('box-test_plugin-block') |
105 | end | 105 | end |
106 | 106 | ||
107 | should 'list plugin block as allowed for box at position 2' do | 107 | should 'list plugin block as allowed for box at position 2' do |
@@ -116,7 +116,7 @@ class BoxTest < ActiveSupport::TestCase | @@ -116,7 +116,7 @@ class BoxTest < ActiveSupport::TestCase | ||
116 | Noosfero::Plugin::Manager.any_instance.stubs(:enabled_plugins).returns([SomePlugin.new]) | 116 | Noosfero::Plugin::Manager.any_instance.stubs(:enabled_plugins).returns([SomePlugin.new]) |
117 | 117 | ||
118 | blocks = Box.new(:position => 2).acceptable_blocks | 118 | blocks = Box.new(:position => 2).acceptable_blocks |
119 | - assert blocks.include?('plugin-block') | 119 | + assert blocks.include?('box-test_plugin-block') |
120 | end | 120 | end |
121 | 121 | ||
122 | end | 122 | end |