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
21399fbc
Commit
21399fbc
authored
Jul 06, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for the ordering of the data stores
parent
25bd5413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/models/ci/build_trace_chunk_spec.rb
spec/models/ci/build_trace_chunk_spec.rb
+16
-0
No files found.
spec/models/ci/build_trace_chunk_spec.rb
View file @
21399fbc
...
@@ -38,6 +38,22 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
...
@@ -38,6 +38,22 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
end
end
end
end
describe
'.all_stores'
do
subject
{
described_class
.
all_stores
}
it
'returns a correctly ordered array'
do
is_expected
.
to
eq
(
%w[redis database fog]
)
end
it
'returns redis store as the the lowest precedence'
do
expect
(
subject
.
first
).
to
eq
(
'redis'
)
end
it
'returns fog store as the the highest precedence'
do
expect
(
subject
.
last
).
to
eq
(
'fog'
)
end
end
describe
'#data'
do
describe
'#data'
do
subject
{
build_trace_chunk
.
data
}
subject
{
build_trace_chunk
.
data
}
...
...
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