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
82e3c537
Commit
82e3c537
authored
Nov 26, 2019
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify spec by adding better test for expectations
parent
f226967c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/lib/gitlab/diff/highlight_cache_spec.rb
spec/lib/gitlab/diff/highlight_cache_spec.rb
+4
-2
No files found.
spec/lib/gitlab/diff/highlight_cache_spec.rb
View file @
82e3c537
...
...
@@ -75,8 +75,10 @@ describe Gitlab::Diff::HighlightCache, :clean_gitlab_redis_cache do
describe
'#write_if_empty'
do
let
(
:backend
)
{
double
(
'backend'
,
read:
{}).
as_null_object
}
xit
'submits a single write action to the redis cache when invoked multiple times'
do
expect
(
cache
).
to
receive
(
:write_to_redis_hash
).
once
it
'filters the key/value list of entries to be caches for each invocation'
do
expect
(
cache
).
to
receive
(
:write_to_redis_hash
)
.
once
.
with
(
hash_including
(
".gitignore"
)).
and_call_original
expect
(
cache
).
to
receive
(
:write_to_redis_hash
).
once
.
with
({}).
and_call_original
2
.
times
{
cache
.
write_if_empty
}
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