Commit 9d6e8660 authored by ayufanpl's avatar ayufanpl

Fix whitespaces

parent 864fa093
...@@ -110,7 +110,7 @@ feature 'Groups > Pipeline Quota' do ...@@ -110,7 +110,7 @@ feature 'Groups > Pipeline Quota' do
let(:group) { create(:group, :with_used_build_minutes_limit) } let(:group) { create(:group, :with_used_build_minutes_limit) }
let!(:subgroup) { create(:group, parent: group) } let!(:subgroup) { create(:group, parent: group) }
let!(:subproject) { create(:project, namespace: subgroup, shared_runners_enabled: true) } let!(:subproject) { create(:project, namespace: subgroup, shared_runners_enabled: true) }
it 'does not show project of subgroup' do it 'does not show project of subgroup' do
visit_pipeline_quota_page visit_pipeline_quota_page
...@@ -119,7 +119,7 @@ feature 'Groups > Pipeline Quota' do ...@@ -119,7 +119,7 @@ feature 'Groups > Pipeline Quota' do
end end
end end
end end
context 'with shared_runner_minutes_on_root_namespace enabled' do context 'with shared_runner_minutes_on_root_namespace enabled' do
before do before do
stub_feature_flags(shared_runner_minutes_on_root_namespace: true) stub_feature_flags(shared_runner_minutes_on_root_namespace: true)
...@@ -128,7 +128,7 @@ feature 'Groups > Pipeline Quota' do ...@@ -128,7 +128,7 @@ feature 'Groups > Pipeline Quota' do
context 'when accessing subgroup' do context 'when accessing subgroup' do
let(:root_ancestor) { create(:group) } let(:root_ancestor) { create(:group) }
let(:group) { create(:group, :with_used_build_minutes_limit, parent: root_ancestor) } let(:group) { create(:group, :with_used_build_minutes_limit, parent: root_ancestor) }
it 'does not show subproject' do it 'does not show subproject' do
visit_pipeline_quota_page visit_pipeline_quota_page
......
...@@ -73,7 +73,7 @@ describe Namespace do ...@@ -73,7 +73,7 @@ describe Namespace do
before do before do
namespace.shared_runners_minutes_limit = 100 namespace.shared_runners_minutes_limit = 100
end end
context 'when group is subgroup' do context 'when group is subgroup' do
set(:root_ancestor) { create(:group) } set(:root_ancestor) { create(:group) }
let(:namespace) { create(:namespace, parent: root_ancestor) } let(:namespace) { create(:namespace, parent: root_ancestor) }
...@@ -431,7 +431,7 @@ describe Namespace do ...@@ -431,7 +431,7 @@ describe Namespace do
is_expected.to eq(true) is_expected.to eq(true)
end end
end end
context 'group without projects' do context 'group without projects' do
it "returns false" do it "returns false" do
is_expected.to eq(false) is_expected.to eq(false)
...@@ -516,8 +516,4 @@ describe Namespace do ...@@ -516,8 +516,4 @@ describe Namespace do
end end
end end
end end
describe '#validate_shared_runner_minutes_support' do
end
end end
...@@ -52,5 +52,5 @@ describe 'admin/groups/_form' do ...@@ -52,5 +52,5 @@ describe 'admin/groups/_form' do
expect(rendered).to render_template('namespaces/_shared_runners_minutes_setting') expect(rendered).to render_template('namespaces/_shared_runners_minutes_setting')
end end
end end
end end
end end
...@@ -3483,7 +3483,7 @@ describe Project do ...@@ -3483,7 +3483,7 @@ describe Project do
context 'when namespace has parent group' do context 'when namespace has parent group' do
let(:root_ancestor) { create(:group) } let(:root_ancestor) { create(:group) }
let(:parent) { build(:group, parent: root_ancestor) } let(:parent) { build(:group, parent: root_ancestor) }
it 'returns root ancestor' do it 'returns root ancestor' do
is_expected.to eq(root_ancestor) is_expected.to eq(root_ancestor)
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