diff options
Diffstat (limited to 'spec/support/helpers/group_api_helpers.rb')
-rw-r--r-- | spec/support/helpers/group_api_helpers.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/helpers/group_api_helpers.rb b/spec/support/helpers/group_api_helpers.rb new file mode 100644 index 00000000000..56c4cc121a7 --- /dev/null +++ b/spec/support/helpers/group_api_helpers.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module GroupAPIHelpers + extend self + + def attributes_for_group_api(params = {}) + # project_creation_level and subgroup_creation_level are Integers in the model + # but are strings in the API + attributes_for(:group, params).except(:project_creation_level, :subgroup_creation_level) + end +end |