From 1c598979f57e8d28309217464e0a5c3666b29c8c Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 16 Sep 2009 14:45:32 -0300 Subject: [PATCH] ActionItem1221: adding another a test --- test/unit/article_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/test/unit/article_test.rb b/test/unit/article_test.rb index 33b44f3..c35e329 100644 --- a/test/unit/article_test.rb +++ b/test/unit/article_test.rb @@ -779,4 +779,12 @@ class ArticleTest < Test::Unit::TestCase assert a.allow_post_content?(p) end + should 'allow user with "Manage content" permissions to edit' do + c = Community.create!(:name => 'new_comm') + p = create_user_with_permission('test_user', 'post_content', c) + a = c.articles.create!(:name => 'a test article') + + assert a.allow_post_content?(p) + end + end -- libgit2 0.21.2