diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-06 11:31:45 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-09-06 12:07:21 -0700 |
commit | 1feeea9c6af5d683f18c021df16e4eedfa9306e0 (patch) | |
tree | 4869cd4d3b9e839a4eba612c9da5205b73dafbe6 /spec/features/groups | |
parent | a887194abd2ea0c0cbcd24f0ff7630800d3eec12 (diff) | |
download | gitlab-ce-1feeea9c6af5d683f18c021df16e4eedfa9306e0.tar.gz |
Refer to “Share with group lock” consistentlyimprove-share-locking-feature-for-subgroups
Diffstat (limited to 'spec/features/groups')
-rw-r--r-- | spec/features/groups/share_lock_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/features/groups/share_lock_spec.rb b/spec/features/groups/share_lock_spec.rb index cf1079bb6d6..8842d1391aa 100644 --- a/spec/features/groups/share_lock_spec.rb +++ b/spec/features/groups/share_lock_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -feature 'Group share lock' do +feature 'Group share with group lock' do given(:root_owner) { create(:user) } given(:root_group) { create(:group) } @@ -12,8 +12,8 @@ feature 'Group share lock' do context 'with a subgroup', :nested_groups do given!(:subgroup) { create(:group, parent: root_group) } - context 'when enabling the parent group share lock' do - scenario 'the subgroup share lock becomes enabled' do + context 'when enabling the parent group share with group lock' do + scenario 'the subgroup share with group lock becomes enabled' do visit edit_group_path(root_group) check 'group_share_with_group_lock' @@ -23,15 +23,15 @@ feature 'Group share lock' do end end - context 'when disabling the parent group share lock (which was already enabled)' do + context 'when disabling the parent group share with group lock (which was already enabled)' do background do visit edit_group_path(root_group) check 'group_share_with_group_lock' click_on 'Save group' end - context 'and the subgroup share lock is enabled' do - scenario 'the subgroup share lock does not change' do + context 'and the subgroup share with group lock is enabled' do + scenario 'the subgroup share with group lock does not change' do visit edit_group_path(root_group) uncheck 'group_share_with_group_lock' @@ -41,14 +41,14 @@ feature 'Group share lock' do end end - context 'but the subgroup share lock is disabled' do + context 'but the subgroup share with group lock is disabled' do background do visit edit_group_path(subgroup) uncheck 'group_share_with_group_lock' click_on 'Save group' end - scenario 'the subgroup share lock does not change' do + scenario 'the subgroup share with group lock does not change' do visit edit_group_path(root_group) uncheck 'group_share_with_group_lock' |