Commit 1c598979f57e8d28309217464e0a5c3666b29c8c
1 parent
67d9cf1a
Exists in
master
and in
23 other branches
ActionItem1221: adding another a test
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
test/unit/article_test.rb
| @@ -779,4 +779,12 @@ class ArticleTest < Test::Unit::TestCase | @@ -779,4 +779,12 @@ class ArticleTest < Test::Unit::TestCase | ||
| 779 | assert a.allow_post_content?(p) | 779 | assert a.allow_post_content?(p) |
| 780 | end | 780 | end |
| 781 | 781 | ||
| 782 | + should 'allow user with "Manage content" permissions to edit' do | ||
| 783 | + c = Community.create!(:name => 'new_comm') | ||
| 784 | + p = create_user_with_permission('test_user', 'post_content', c) | ||
| 785 | + a = c.articles.create!(:name => 'a test article') | ||
| 786 | + | ||
| 787 | + assert a.allow_post_content?(p) | ||
| 788 | + end | ||
| 789 | + | ||
| 782 | end | 790 | end |