summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-25 11:57:16 -0500
committerMike Greiling <mike@pixelcog.com>2017-08-26 03:30:01 -0500
commitd6d713f6bac9cd1840e45ed43911b99adba9c07b (patch)
tree5525f760e15f113e244f9e93f43b04fde0184ba8
parent96c2672da8edff081702702a4a499bae14d27ff6 (diff)
downloadgitlab-ce-d6d713f6bac9cd1840e45ed43911b99adba9c07b.tar.gz
fix failing tests due to new group visibility restrictions
-rw-r--r--spec/features/projects/new_project_spec.rb2
-rw-r--r--spec/models/group_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb
index 22fb1223739..9f8b1996249 100644
--- a/spec/features/projects/new_project_spec.rb
+++ b/spec/features/projects/new_project_spec.rb
@@ -87,7 +87,7 @@ feature 'New project' do
end
context 'with subgroup namespace' do
- let(:group) { create(:group, :private, owner: user) }
+ let(:group) { create(:group, owner: user) }
let(:subgroup) { create(:group, parent: group) }
before do
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index c3342afb7fd..f9cd12c0ff3 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -127,7 +127,7 @@ describe Group do
internal_group.visibility_level = Gitlab::VisibilityLevel::PRIVATE
expect(internal_group).to be_invalid
- expect(internal_group.errors[:visibility_level]).to include('private is not allowed since there are projects with higher visibility.')
+ expect(internal_group.errors[:visibility_level]).to include('private is not allowed since this group contains projects with higher visibility.')
end
end
@@ -149,7 +149,7 @@ describe Group do
internal_group.visibility_level = Gitlab::VisibilityLevel::PRIVATE
expect(internal_group).to be_invalid
- expect(internal_group.errors[:visibility_level]).to include('private is not allowed since there are sub groups with higher visibility.')
+ expect(internal_group.errors[:visibility_level]).to include('private is not allowed since there are sub-groups with higher visibility.')
end
end