diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-08-30 16:01:57 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-08-30 16:01:57 -0500 |
commit | 129823664bb2287545b0402823366261151273ca (patch) | |
tree | 9bfcca638d968aebcda636822d38273aa08faad7 /spec/helpers | |
parent | 8a72203a589bc3b7a74f5dd60a3c607d21436e6a (diff) | |
download | gitlab-ce-129823664bb2287545b0402823366261151273ca.tar.gz |
enhance disabled group visibility options with links and instructions
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/visibility_level_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/visibility_level_helper_spec.rb b/spec/helpers/visibility_level_helper_spec.rb index 0375fa600ed..5077c89d7b4 100644 --- a/spec/helpers/visibility_level_helper_spec.rb +++ b/spec/helpers/visibility_level_helper_spec.rb @@ -132,8 +132,8 @@ describe VisibilityLevelHelper do .to include "it contains projects with higher visibility", "it contains sub-groups with higher visibility" expect(disallowed_visibility_level?(subgroup, Gitlab::VisibilityLevel::PUBLIC)).to be_truthy - expect(disallowed_visibility_level_description(Gitlab::VisibilityLevel::PUBLIC, subgroup)) - .to include "the visibility of its parent group is internal" + expect(strip_tags disallowed_visibility_level_description(Gitlab::VisibilityLevel::PUBLIC, subgroup)) + .to include "the visibility of #{group.name} is internal" end end end |