Commit d6d713f6 authored by Mike Greiling's avatar Mike Greiling

fix failing tests due to new group visibility restrictions

parent 96c2672d
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment