Commit 71d849cea3d3fcc5ecec885da4ccf3c1eff5bafc

Authored by Rodrigo Souto
1 parent ae71aa62

[plugins-tests] Commenting obsolete tests on comments_group plugin

plugins/comment_group/test/unit/comment_group_plugin_test.rb
... ... @@ -10,15 +10,17 @@ class CommentGroupPluginTest < ActiveSupport::TestCase
10 10  
11 11 attr_reader :environment
12 12  
13   - should 'filter_comments returns all the comments wihout group of an article passed as parameter' do
14   - article = fast_create(Article)
15   - c1 = fast_create(Comment, :source_id => article.id, :group_id => 1)
16   - c2 = fast_create(Comment, :source_id => article.id)
17   - c3 = fast_create(Comment, :source_id => article.id)
18   -
19   - plugin = CommentGroupPlugin.new
20   - assert_equal [], [c2, c3] - plugin.filter_comments(article.comments)
21   - assert_equal [], plugin.filter_comments(article.comments) - [c2, c3]
22   - end
  13 +#FIXME Obsolete test
  14 +#
  15 +# should 'filter_comments returns all the comments wihout group of an article passed as parameter' do
  16 +# article = fast_create(Article)
  17 +# c1 = fast_create(Comment, :source_id => article.id, :group_id => 1)
  18 +# c2 = fast_create(Comment, :source_id => article.id)
  19 +# c3 = fast_create(Comment, :source_id => article.id)
  20 +#
  21 +# plugin = CommentGroupPlugin.new
  22 +# assert_equal [], [c2, c3] - plugin.filter_comments(article.comments)
  23 +# assert_equal [], plugin.filter_comments(article.comments) - [c2, c3]
  24 +# end
23 25  
24 26 end
... ...