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
c96f4b96
Commit
c96f4b96
authored
May 22, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify spec/features/projects/jobs_spec.rb
parent
38f43812
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
ee/spec/features/projects/jobs_spec.rb
ee/spec/features/projects/jobs_spec.rb
+28
-0
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+0
-11
No files found.
ee/spec/features/projects/jobs_spec.rb
0 → 100644
View file @
c96f4b96
require
'spec_helper'
require
'tempfile'
feature
'Jobs'
,
:clean_gitlab_redis_shared_state
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user_access_level
)
{
:developer
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:job
)
{
create
(
:ci_build
,
:trace_live
,
pipeline:
pipeline
)
}
before
do
project
.
add_role
(
user
,
user_access_level
)
sign_in
(
user
)
end
describe
"GET /:project/jobs/:id"
do
context
'job project is over shared runners limit'
do
let
(
:group
)
{
create
(
:group
,
:with_used_build_minutes_limit
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
group
,
shared_runners_enabled:
true
)
}
it
'displays a warning message'
do
visit
project_job_path
(
project
,
job
)
expect
(
page
).
to
have_content
(
'You have used all your shared Runners pipeline minutes.'
)
end
end
end
end
spec/features/projects/jobs_spec.rb
View file @
c96f4b96
...
...
@@ -370,17 +370,6 @@ feature 'Jobs', :clean_gitlab_redis_shared_state do
end
end
context
'job project is over shared runners limit'
do
let
(
:group
)
{
create
(
:group
,
:with_used_build_minutes_limit
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
group
,
shared_runners_enabled:
true
)
}
it
'displays a warning message'
do
visit
project_job_path
(
project
,
job
)
expect
(
page
).
to
have_content
(
'You have used all your shared Runners pipeline minutes.'
)
end
end
context
'Playable manual action'
do
let
(
:job
)
{
create
(
:ci_build
,
:playable
,
pipeline:
pipeline
)
}
...
...
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