Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9d6e8660
Commit
9d6e8660
authored
Nov 21, 2017
by
ayufanpl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix whitespaces
parent
864fa093
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
11 deletions
+7
-11
spec/ee/spec/features/groups/pipeline_quota_spec.rb
spec/ee/spec/features/groups/pipeline_quota_spec.rb
+3
-3
spec/ee/spec/models/ee/namespace_spec.rb
spec/ee/spec/models/ee/namespace_spec.rb
+2
-6
spec/ee/spec/views/admin/groups/_form.html.haml_spec.rb
spec/ee/spec/views/admin/groups/_form.html.haml_spec.rb
+1
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
No files found.
spec/ee/spec/features/groups/pipeline_quota_spec.rb
View file @
9d6e8660
...
...
@@ -110,7 +110,7 @@ feature 'Groups > Pipeline Quota' do
let
(
:group
)
{
create
(
:group
,
:with_used_build_minutes_limit
)
}
let!
(
:subgroup
)
{
create
(
:group
,
parent:
group
)
}
let!
(
:subproject
)
{
create
(
:project
,
namespace:
subgroup
,
shared_runners_enabled:
true
)
}
it
'does not show project of subgroup'
do
visit_pipeline_quota_page
...
...
@@ -119,7 +119,7 @@ feature 'Groups > Pipeline Quota' do
end
end
end
context
'with shared_runner_minutes_on_root_namespace enabled'
do
before
do
stub_feature_flags
(
shared_runner_minutes_on_root_namespace:
true
)
...
...
@@ -128,7 +128,7 @@ feature 'Groups > Pipeline Quota' do
context
'when accessing subgroup'
do
let
(
:root_ancestor
)
{
create
(
:group
)
}
let
(
:group
)
{
create
(
:group
,
:with_used_build_minutes_limit
,
parent:
root_ancestor
)
}
it
'does not show subproject'
do
visit_pipeline_quota_page
...
...
spec/ee/spec/models/ee/namespace_spec.rb
View file @
9d6e8660
...
...
@@ -73,7 +73,7 @@ describe Namespace do
before
do
namespace
.
shared_runners_minutes_limit
=
100
end
context
'when group is subgroup'
do
set
(
:root_ancestor
)
{
create
(
:group
)
}
let
(
:namespace
)
{
create
(
:namespace
,
parent:
root_ancestor
)
}
...
...
@@ -431,7 +431,7 @@ describe Namespace do
is_expected
.
to
eq
(
true
)
end
end
context
'group without projects'
do
it
"returns false"
do
is_expected
.
to
eq
(
false
)
...
...
@@ -516,8 +516,4 @@ describe Namespace do
end
end
end
describe
'#validate_shared_runner_minutes_support'
do
end
end
spec/ee/spec/views/admin/groups/_form.html.haml_spec.rb
View file @
9d6e8660
...
...
@@ -52,5 +52,5 @@ describe 'admin/groups/_form' do
expect
(
rendered
).
to
render_template
(
'namespaces/_shared_runners_minutes_setting'
)
end
end
end
end
end
spec/models/project_spec.rb
View file @
9d6e8660
...
...
@@ -3483,7 +3483,7 @@ describe Project do
context
'when namespace has parent group'
do
let
(
:root_ancestor
)
{
create
(
:group
)
}
let
(
:parent
)
{
build
(
:group
,
parent:
root_ancestor
)
}
it
'returns root ancestor'
do
is_expected
.
to
eq
(
root_ancestor
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment