Commit 156ae50673b9276a472fb34c85a2f2d3bdf933ed

Authored by Victor Costa
1 parent 84904a0e

require_auth_to_comment: fix tests

plugins/require_auth_to_comment/features/require_auth_to_comment.feature
1 1 Feature: require authentication to comment
2 2  
3 3 Background:
4   - Given plugin RequireAuthToCommentPlugin is enabled on environment
  4 + Given plugin RequireAuthToComment is enabled on environment
5 5 And the following users
6 6 | login |
7 7 | bozo |
... ...
plugins/require_auth_to_comment/lib/ext/profile.rb
... ... @@ -3,4 +3,8 @@ require_dependency 'profile'
3 3 class Profile
4 4 settings_items :allow_unauthenticated_comments, :type => :boolean
5 5 attr_accessible :allow_unauthenticated_comments
  6 +
  7 + descendants.each do |descendant|
  8 + descendant.attr_accessible :allow_unauthenticated_comments
  9 + end
6 10 end
... ...