diff options
Diffstat (limited to 'spec/support/helpers/project_helpers.rb')
-rw-r--r-- | spec/support/helpers/project_helpers.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/support/helpers/project_helpers.rb b/spec/support/helpers/project_helpers.rb index 2427ed2bcc9..daa07e385ea 100644 --- a/spec/support/helpers/project_helpers.rb +++ b/spec/support/helpers/project_helpers.rb @@ -1,22 +1,6 @@ # frozen_string_literal: true module ProjectHelpers - # @params target [Project] membership target - # @params membership [Symbol] accepts the membership levels :guest, :reporter... - # and phony levels :non_member and :anonymous - def create_user_from_membership(target, membership) - case membership - when :anonymous - nil - when :non_member - create(:user, name: membership) - when :admin - create(:user, :admin, name: 'admin') - else - create(:user, name: membership).tap { |u| target.add_member(u, membership) } - end - end - def update_feature_access_level(project, access_level, additional_params = {}) features = ProjectFeature::FEATURES.dup features.delete(:pages) |