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
79b963b2
Commit
79b963b2
authored
Nov 26, 2019
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup formating of tests
parent
db1e309a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
+3
-19
spec/lib/gitlab/diff/highlight_cache_spec.rb
spec/lib/gitlab/diff/highlight_cache_spec.rb
+3
-19
No files found.
spec/lib/gitlab/diff/highlight_cache_spec.rb
View file @
79b963b2
...
...
@@ -75,12 +75,10 @@ describe Gitlab::Diff::HighlightCache, :clean_gitlab_redis_cache do
describe
'#write_if_empty'
do
let
(
:backend
)
{
double
(
'backend'
,
read:
{}).
as_null_object
}
context
'when :hset_redis_diff_caching is enabled'
do
xit
'submits a single write action to the redis cache when invoked multiple times'
do
expect
(
cache
).
to
receive
(
:write_to_redis_hash
).
once
xit
'submits a single write action to the redis cache when invoked multiple times'
do
expect
(
cache
).
to
receive
(
:write_to_redis_hash
).
once
2
.
times
{
cache
.
write_if_empty
}
end
2
.
times
{
cache
.
write_if_empty
}
end
end
...
...
@@ -93,20 +91,6 @@ describe Gitlab::Diff::HighlightCache, :clean_gitlab_redis_cache do
end
end
# describe '#read_entire_redis_hash' do
# let(:backend) { Rails.cache }
#
# before do
# cache.write_to_redis_hash(diff_hash)
# end
#
# it 'returns the entire contents of a Redis hash as JSON' do
# result = cache.read_entire_redis_hash
#
# expect(result.values.first).to eq(diff_hash.values.first.to_json)
# end
# end
describe
'#read_single_entry_from_redis_hash'
do
let
(
:backend
)
{
Rails
.
cache
}
...
...
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