Commit 79b963b2 authored by Kerri Miller's avatar Kerri Miller

Cleanup formating of tests

parent db1e309a
......@@ -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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment