From 156ae50673b9276a472fb34c85a2f2d3bdf933ed Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 24 Mar 2015 16:33:24 -0300 Subject: [PATCH] require_auth_to_comment: fix tests --- plugins/require_auth_to_comment/features/require_auth_to_comment.feature | 2 +- plugins/require_auth_to_comment/lib/ext/profile.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/require_auth_to_comment/features/require_auth_to_comment.feature b/plugins/require_auth_to_comment/features/require_auth_to_comment.feature index 9a8ce8d..2ef3bbd 100644 --- a/plugins/require_auth_to_comment/features/require_auth_to_comment.feature +++ b/plugins/require_auth_to_comment/features/require_auth_to_comment.feature @@ -1,7 +1,7 @@ Feature: require authentication to comment Background: - Given plugin RequireAuthToCommentPlugin is enabled on environment + Given plugin RequireAuthToComment is enabled on environment And the following users | login | | bozo | diff --git a/plugins/require_auth_to_comment/lib/ext/profile.rb b/plugins/require_auth_to_comment/lib/ext/profile.rb index c9871e3..c790a6b 100644 --- a/plugins/require_auth_to_comment/lib/ext/profile.rb +++ b/plugins/require_auth_to_comment/lib/ext/profile.rb @@ -3,4 +3,8 @@ require_dependency 'profile' class Profile settings_items :allow_unauthenticated_comments, :type => :boolean attr_accessible :allow_unauthenticated_comments + + descendants.each do |descendant| + descendant.attr_accessible :allow_unauthenticated_comments + end end -- libgit2 0.21.2