From 490321bdcc0bdeecccd47be643d658703f065c01 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 22 Aug 2013 13:22:43 -0300 Subject: [PATCH] [postgres-tests] Removing obsolete test from plugin test --- test/unit/plugin_test.rb | 19 ------------------- 1 file changed, 0 insertions(+), 19 deletions(-) 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