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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
61227393
Commit
61227393
authored
May 31, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename the other jobs
parent
afb1bf0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+8
-8
No files found.
spec/features/projects/jobs_spec.rb
View file @
61227393
...
@@ -351,7 +351,7 @@ feature 'Jobs', :feature do
...
@@ -351,7 +351,7 @@ feature 'Jobs', :feature do
end
end
end
end
context
"
Build
from other project"
do
context
"
Job
from other project"
do
before
do
before
do
build
.
run!
build
.
run!
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
build
)
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
build
)
...
@@ -362,7 +362,7 @@ feature 'Jobs', :feature do
...
@@ -362,7 +362,7 @@ feature 'Jobs', :feature do
it
{
expect
(
page
).
to
have_http_status
(
404
)
}
it
{
expect
(
page
).
to
have_http_status
(
404
)
}
end
end
context
"
Build
that current user is not allowed to retry"
do
context
"
Job
that current user is not allowed to retry"
do
before
do
before
do
build
.
run!
build
.
run!
build
.
cancel!
build
.
cancel!
...
@@ -400,7 +400,7 @@ feature 'Jobs', :feature do
...
@@ -400,7 +400,7 @@ feature 'Jobs', :feature do
describe
'GET /:project/jobs/:id/raw'
,
:js
do
describe
'GET /:project/jobs/:id/raw'
,
:js
do
context
'access source'
do
context
'access source'
do
context
'
build
from project'
do
context
'
job
from project'
do
before
do
before
do
Capybara
.
current_session
.
driver
.
headers
=
{
'X-Sendfile-Type'
=>
'X-Sendfile'
}
Capybara
.
current_session
.
driver
.
headers
=
{
'X-Sendfile-Type'
=>
'X-Sendfile'
}
build
.
run!
build
.
run!
...
@@ -458,7 +458,7 @@ feature 'Jobs', :feature do
...
@@ -458,7 +458,7 @@ feature 'Jobs', :feature do
end
end
end
end
context
'when
build
has trace in DB'
do
context
'when
job
has trace in DB'
do
let
(
:paths
)
{
[]
}
let
(
:paths
)
{
[]
}
it
'sends the right headers'
do
it
'sends the right headers'
do
...
@@ -483,7 +483,7 @@ feature 'Jobs', :feature do
...
@@ -483,7 +483,7 @@ feature 'Jobs', :feature do
end
end
describe
"GET /:project/jobs/:id/trace.json"
do
describe
"GET /:project/jobs/:id/trace.json"
do
context
"
Build
from project"
do
context
"
Job
from project"
do
before
do
before
do
visit
trace_namespace_project_job_path
(
project
.
namespace
,
project
,
build
,
format: :json
)
visit
trace_namespace_project_job_path
(
project
.
namespace
,
project
,
build
,
format: :json
)
end
end
...
@@ -491,7 +491,7 @@ feature 'Jobs', :feature do
...
@@ -491,7 +491,7 @@ feature 'Jobs', :feature do
it
{
expect
(
page
.
status_code
).
to
eq
(
200
)
}
it
{
expect
(
page
.
status_code
).
to
eq
(
200
)
}
end
end
context
"
Build
from other project"
do
context
"
Job
from other project"
do
before
do
before
do
visit
trace_namespace_project_job_path
(
project
.
namespace
,
project
,
build2
,
format: :json
)
visit
trace_namespace_project_job_path
(
project
.
namespace
,
project
,
build2
,
format: :json
)
end
end
...
@@ -501,7 +501,7 @@ feature 'Jobs', :feature do
...
@@ -501,7 +501,7 @@ feature 'Jobs', :feature do
end
end
describe
"GET /:project/jobs/:id/status"
do
describe
"GET /:project/jobs/:id/status"
do
context
"
Build
from project"
do
context
"
Job
from project"
do
before
do
before
do
visit
status_namespace_project_job_path
(
project
.
namespace
,
project
,
build
)
visit
status_namespace_project_job_path
(
project
.
namespace
,
project
,
build
)
end
end
...
@@ -509,7 +509,7 @@ feature 'Jobs', :feature do
...
@@ -509,7 +509,7 @@ feature 'Jobs', :feature do
it
{
expect
(
page
.
status_code
).
to
eq
(
200
)
}
it
{
expect
(
page
.
status_code
).
to
eq
(
200
)
}
end
end
context
"
Build
from other project"
do
context
"
Job
from other project"
do
before
do
before
do
visit
status_namespace_project_job_path
(
project
.
namespace
,
project
,
build2
)
visit
status_namespace_project_job_path
(
project
.
namespace
,
project
,
build2
)
end
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