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
f60ffd54
Commit
f60ffd54
authored
Jul 06, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static analysys
parent
9bdb4b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/support/shared_examples/ci_trace_shared_examples.rb
spec/support/shared_examples/ci_trace_shared_examples.rb
+8
-8
No files found.
spec/support/shared_examples/ci_trace_shared_examples.rb
View file @
f60ffd54
...
@@ -593,7 +593,7 @@ shared_examples_for 'trace with disabled live trace feature' do
...
@@ -593,7 +593,7 @@ shared_examples_for 'trace with disabled live trace feature' do
describe
'#erase!'
do
describe
'#erase!'
do
subject
{
trace
.
erase!
}
subject
{
trace
.
erase!
}
context
'when it is a live trace'
do
context
'when it is a live trace'
do
context
'when trace is stored in database'
do
context
'when trace is stored in database'
do
let
(
:build
)
{
create
(
:ci_build
)
}
let
(
:build
)
{
create
(
:ci_build
)
}
...
@@ -605,7 +605,7 @@ shared_examples_for 'trace with disabled live trace feature' do
...
@@ -605,7 +605,7 @@ shared_examples_for 'trace with disabled live trace feature' do
it
"removes trace"
do
it
"removes trace"
do
subject
subject
expect
(
trace
.
raw
).
to
be_nil
expect
(
trace
.
raw
).
to
be_nil
end
end
end
end
...
@@ -617,7 +617,7 @@ shared_examples_for 'trace with disabled live trace feature' do
...
@@ -617,7 +617,7 @@ shared_examples_for 'trace with disabled live trace feature' do
it
"removes trace"
do
it
"removes trace"
do
subject
subject
expect
(
trace
.
raw
).
to
be_nil
expect
(
trace
.
raw
).
to
be_nil
end
end
end
end
...
@@ -629,10 +629,10 @@ shared_examples_for 'trace with disabled live trace feature' do
...
@@ -629,10 +629,10 @@ shared_examples_for 'trace with disabled live trace feature' do
it
"has trace at first"
do
it
"has trace at first"
do
expect
(
trace
.
raw
).
not_to
be_nil
expect
(
trace
.
raw
).
not_to
be_nil
end
end
it
"removes trace"
do
it
"removes trace"
do
subject
subject
build
.
reload
build
.
reload
expect
(
trace
.
raw
).
to
be_nil
expect
(
trace
.
raw
).
to
be_nil
end
end
...
@@ -836,7 +836,7 @@ shared_examples_for 'trace with enabled live trace feature' do
...
@@ -836,7 +836,7 @@ shared_examples_for 'trace with enabled live trace feature' do
it
"removes trace"
do
it
"removes trace"
do
subject
subject
expect
(
trace
.
raw
).
to
be_nil
expect
(
trace
.
raw
).
to
be_nil
end
end
end
end
...
@@ -847,10 +847,10 @@ shared_examples_for 'trace with enabled live trace feature' do
...
@@ -847,10 +847,10 @@ shared_examples_for 'trace with enabled live trace feature' do
it
"has trace at first"
do
it
"has trace at first"
do
expect
(
trace
.
raw
).
not_to
be_nil
expect
(
trace
.
raw
).
not_to
be_nil
end
end
it
"removes trace"
do
it
"removes trace"
do
subject
subject
build
.
reload
build
.
reload
expect
(
trace
.
raw
).
to
be_nil
expect
(
trace
.
raw
).
to
be_nil
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