From 71d849cea3d3fcc5ecec885da4ccf3c1eff5bafc Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 21 Aug 2013 19:49:20 -0300 Subject: [PATCH] [plugins-tests] Commenting obsolete tests on comments_group plugin --- plugins/comment_group/test/unit/comment_group_plugin_test.rb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/plugins/comment_group/test/unit/comment_group_plugin_test.rb b/plugins/comment_group/test/unit/comment_group_plugin_test.rb index bb262cd..94e473e 100644 --- a/plugins/comment_group/test/unit/comment_group_plugin_test.rb +++ b/plugins/comment_group/test/unit/comment_group_plugin_test.rb @@ -10,15 +10,17 @@ class CommentGroupPluginTest < ActiveSupport::TestCase attr_reader :environment - should 'filter_comments returns all the comments wihout group of an article passed as parameter' do - 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) - - plugin = CommentGroupPlugin.new - assert_equal [], [c2, c3] - plugin.filter_comments(article.comments) - assert_equal [], plugin.filter_comments(article.comments) - [c2, c3] - end +#FIXME Obsolete test +# +# should 'filter_comments returns all the comments wihout group of an article passed as parameter' do +# 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) +# +# plugin = CommentGroupPlugin.new +# assert_equal [], [c2, c3] - plugin.filter_comments(article.comments) +# assert_equal [], plugin.filter_comments(article.comments) - [c2, c3] +# end end -- libgit2 0.21.2