Commit 156ae50673b9276a472fb34c85a2f2d3bdf933ed
1 parent
84904a0e
Exists in
master
and in
26 other branches
require_auth_to_comment: fix tests
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
plugins/require_auth_to_comment/features/require_auth_to_comment.feature
1 | Feature: require authentication to comment | 1 | Feature: require authentication to comment |
2 | 2 | ||
3 | Background: | 3 | Background: |
4 | - Given plugin RequireAuthToCommentPlugin is enabled on environment | 4 | + Given plugin RequireAuthToComment is enabled on environment |
5 | And the following users | 5 | And the following users |
6 | | login | | 6 | | login | |
7 | | bozo | | 7 | | bozo | |
plugins/require_auth_to_comment/lib/ext/profile.rb
@@ -3,4 +3,8 @@ require_dependency 'profile' | @@ -3,4 +3,8 @@ require_dependency 'profile' | ||
3 | class Profile | 3 | class Profile |
4 | settings_items :allow_unauthenticated_comments, :type => :boolean | 4 | settings_items :allow_unauthenticated_comments, :type => :boolean |
5 | attr_accessible :allow_unauthenticated_comments | 5 | attr_accessible :allow_unauthenticated_comments |
6 | + | ||
7 | + descendants.each do |descendant| | ||
8 | + descendant.attr_accessible :allow_unauthenticated_comments | ||
9 | + end | ||
6 | end | 10 | end |