diff --git a/test/unit/plugin_test.rb b/test/unit/plugin_test.rb index 018c35c..80b38e7 100644 --- a/test/unit/plugin_test.rb +++ b/test/unit/plugin_test.rb @@ -28,25 +28,6 @@ class PluginTest < ActiveSupport::TestCase assert_equal({:controller => 'plugin_test/plugin1_admin', :action => 'index'}, Plugin1.admin_url) end - should 'filter comments with scope defined by plugin' do - class Plugin1 < Noosfero::Plugin - def filter_comments(scope) - scope.without_spam - end - end - - article = fast_create(Article) - c1 = fast_create(Comment, :source_id => article.id, :group_id => 1) - c2 = fast_create(Comment, :source_id => article.id) - c3 = fast_create(Comment, :source_id => article.id, :spam => true) - - plugin = Plugin1.new - comments = plugin.filter_comments(article.comments) - assert_includes comments, c1 - assert_includes comments, c2 - assert_not_includes comments, c3 - end - should 'returns empty hash for class method extra_blocks by default if no blocks are defined on plugin' do class SomePlugin1 < Noosfero::Plugin -- libgit2 0.21.2