Commit 490321bdcc0bdeecccd47be643d658703f065c01
1 parent
f2c19fc8
Exists in
master
and in
29 other branches
[postgres-tests] Removing obsolete test from plugin test
Showing
1 changed file
with
0 additions
and
19 deletions
Show diff stats
test/unit/plugin_test.rb
... | ... | @@ -28,25 +28,6 @@ class PluginTest < ActiveSupport::TestCase |
28 | 28 | assert_equal({:controller => 'plugin_test/plugin1_admin', :action => 'index'}, Plugin1.admin_url) |
29 | 29 | end |
30 | 30 | |
31 | - should 'filter comments with scope defined by plugin' do | |
32 | - class Plugin1 < Noosfero::Plugin | |
33 | - def filter_comments(scope) | |
34 | - scope.without_spam | |
35 | - end | |
36 | - end | |
37 | - | |
38 | - article = fast_create(Article) | |
39 | - c1 = fast_create(Comment, :source_id => article.id, :group_id => 1) | |
40 | - c2 = fast_create(Comment, :source_id => article.id) | |
41 | - c3 = fast_create(Comment, :source_id => article.id, :spam => true) | |
42 | - | |
43 | - plugin = Plugin1.new | |
44 | - comments = plugin.filter_comments(article.comments) | |
45 | - assert_includes comments, c1 | |
46 | - assert_includes comments, c2 | |
47 | - assert_not_includes comments, c3 | |
48 | - end | |
49 | - | |
50 | 31 | should 'returns empty hash for class method extra_blocks by default if no blocks are defined on plugin' do |
51 | 32 | |
52 | 33 | class SomePlugin1 < Noosfero::Plugin | ... | ... |