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
73be775c
Commit
73be775c
authored
Feb 19, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ci_build trace trait
parent
6c6bb794
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
spec/models/build_spec.rb
spec/models/build_spec.rb
+2
-2
spec/requests/api/builds_spec.rb
spec/requests/api/builds_spec.rb
+2
-2
spec/requests/ci/api/builds_spec.rb
spec/requests/ci/api/builds_spec.rb
+1
-1
No files found.
spec/models/build_spec.rb
View file @
73be775c
...
@@ -538,7 +538,7 @@ describe Ci::Build, models: true do
...
@@ -538,7 +538,7 @@ describe Ci::Build, models: true do
end
end
context
'build is erasable'
do
context
'build is erasable'
do
let!
(
:build
)
{
create
(
:ci_build
_with_
trace
,
:success
,
:artifacts
)
}
let!
(
:build
)
{
create
(
:ci_build
,
:
trace
,
:success
,
:artifacts
)
}
describe
'#erase'
do
describe
'#erase'
do
before
{
build
.
erase
(
erased_by:
user
)
}
before
{
build
.
erase
(
erased_by:
user
)
}
...
@@ -570,7 +570,7 @@ describe Ci::Build, models: true do
...
@@ -570,7 +570,7 @@ describe Ci::Build, models: true do
end
end
describe
'#erased?'
do
describe
'#erased?'
do
let!
(
:build
)
{
create
(
:ci_build
_with_
trace
,
:success
,
:artifacts
)
}
let!
(
:build
)
{
create
(
:ci_build
,
:
trace
,
:success
,
:artifacts
)
}
subject
{
build
.
erased?
}
subject
{
build
.
erased?
}
context
'build has not been erased'
do
context
'build has not been erased'
do
...
...
spec/requests/api/builds_spec.rb
View file @
73be775c
...
@@ -218,7 +218,7 @@ describe API::API, api: true do
...
@@ -218,7 +218,7 @@ describe API::API, api: true do
end
end
context
'build is erasable'
do
context
'build is erasable'
do
let
(
:build
)
{
create
(
:ci_build
_with_
trace
,
:artifacts
,
:success
,
project:
project
,
commit:
commit
)
}
let
(
:build
)
{
create
(
:ci_build
,
:
trace
,
:artifacts
,
:success
,
project:
project
,
commit:
commit
)
}
it
'should erase build content'
do
it
'should erase build content'
do
expect
(
response
.
status
).
to
eq
201
expect
(
response
.
status
).
to
eq
201
...
@@ -234,7 +234,7 @@ describe API::API, api: true do
...
@@ -234,7 +234,7 @@ describe API::API, api: true do
end
end
context
'build is not erasable'
do
context
'build is not erasable'
do
let
(
:build
)
{
create
(
:ci_build
_with_
trace
,
project:
project
,
commit:
commit
)
}
let
(
:build
)
{
create
(
:ci_build
,
:
trace
,
project:
project
,
commit:
commit
)
}
it
'should respond with forbidden'
do
it
'should respond with forbidden'
do
expect
(
response
.
status
).
to
eq
403
expect
(
response
.
status
).
to
eq
403
...
...
spec/requests/ci/api/builds_spec.rb
View file @
73be775c
...
@@ -132,7 +132,7 @@ describe Ci::API::API do
...
@@ -132,7 +132,7 @@ describe Ci::API::API do
describe
"PUT /builds/:id"
do
describe
"PUT /builds/:id"
do
let
(
:commit
)
{
create
(
:ci_commit
,
project:
project
)}
let
(
:commit
)
{
create
(
:ci_commit
,
project:
project
)}
let
(
:build
)
{
create
(
:ci_build
_with_
trace
,
commit:
commit
,
runner_id:
runner
.
id
)
}
let
(
:build
)
{
create
(
:ci_build
,
:
trace
,
commit:
commit
,
runner_id:
runner
.
id
)
}
before
do
before
do
build
.
run!
build
.
run!
...
...
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