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
b025e89e
Commit
b025e89e
authored
Jul 04, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
4c0c7ed3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/factories/ci/build_trace_chunks.rb
spec/factories/ci/build_trace_chunks.rb
+3
-3
spec/models/ci/build_trace_chunk_spec.rb
spec/models/ci/build_trace_chunk_spec.rb
+1
-1
No files found.
spec/factories/ci/build_trace_chunks.rb
View file @
b025e89e
...
...
@@ -12,7 +12,7 @@ FactoryBot.define do
end
after
(
:create
)
do
|
build_trace_chunk
,
evaluator
|
::
Ci
::
BuildTraceChunk
::
Redis
.
new
.
set_data
(
build_trace_chunk
,
evaluator
.
initial_data
)
Ci
::
BuildTraceChunks
::
Redis
.
new
.
set_data
(
build_trace_chunk
,
evaluator
.
initial_data
)
end
end
...
...
@@ -28,7 +28,7 @@ FactoryBot.define do
end
after
(
:build
)
do
|
build_trace_chunk
,
evaluator
|
::
Ci
::
BuildTraceChunk
::
Database
.
new
.
set_data
(
build_trace_chunk
,
evaluator
.
initial_data
)
Ci
::
BuildTraceChunks
::
Database
.
new
.
set_data
(
build_trace_chunk
,
evaluator
.
initial_data
)
end
end
...
...
@@ -44,7 +44,7 @@ FactoryBot.define do
end
after
(
:create
)
do
|
build_trace_chunk
,
evaluator
|
::
Ci
::
BuildTraceChunk
::
Fog
.
new
.
set_data
(
build_trace_chunk
,
evaluator
.
initial_data
)
Ci
::
BuildTraceChunks
::
Fog
.
new
.
set_data
(
build_trace_chunk
,
evaluator
.
initial_data
)
end
end
...
...
spec/models/ci/build_trace_chunk_spec.rb
View file @
b025e89e
...
...
@@ -120,7 +120,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
let
(
:new_data
)
{
nil
}
it
'raises an error'
do
expect
{
subject
}.
to
raise_error
(
'New data is
nil
'
)
expect
{
subject
}.
to
raise_error
(
'New data is
missing
'
)
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