Commit 1acfc754 authored by ayufanpl's avatar ayufanpl

shared_runner_minutes_on_root_namespace run only on nested groups

parent ca877e93
......@@ -120,7 +120,7 @@ feature 'Groups > Pipeline Quota' do
end
end
context 'with shared_runner_minutes_on_root_namespace enabled' do
context 'with shared_runner_minutes_on_root_namespace enabled', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end
......
......@@ -341,7 +341,7 @@ describe Namespace do
end
end
context 'when shared_runner_minutes_on_root_namespace is enabled' do
context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end
......@@ -380,7 +380,7 @@ describe Namespace do
it { is_expected.to be_truthy }
context 'when is subgroup' do
context 'when is subgroup', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
namespace.parent = build(:group)
......@@ -413,7 +413,7 @@ describe Namespace do
end
end
context 'when shared_runner_minutes_on_root_namespace is enabled' do
context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end
......
......@@ -549,7 +549,7 @@ describe Project do
end
end
context 'when shared_runner_minutes_on_root_namespace is enabled' do
context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end
......
......@@ -90,7 +90,7 @@ module Ci
end
end
context 'when shared_runner_minutes_on_root_namespace is enabled' do
context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end
......
......@@ -27,7 +27,7 @@ describe 'admin/groups/_form' do
end
end
describe 'when :shared_runner_minutes_on_root_namespace is enabled' do
describe 'when :shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
end
......
......@@ -61,7 +61,7 @@ describe UpdateBuildMinutesService do
end
end
context 'when shared_runner_minutes_on_root_namespace is enabled' do
context 'when shared_runner_minutes_on_root_namespace is enabled', :nested_groups do
let(:namespace) { create(:namespace, parent: root_ancestor) }
before do
......
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