summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-09-04 17:06:34 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-09-07 10:07:18 -0300
commitcd1d5b244072c6701e77c6bd7be9e9a0d60f8967 (patch)
tree56dc6c7e96e61cc47b08776152ca21d9e5708c57 /spec/services
parentd73541d006ce3d0261cf082dac5ae605dfe7a848 (diff)
downloadgitlab-ce-cd1d5b244072c6701e77c6bd7be9e9a0d60f8967.tar.gz
Cache diff highlighting upon Merge Request creation (refactors diff caching)
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/merge_requests/reload_diffs_service_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/services/merge_requests/reload_diffs_service_spec.rb b/spec/services/merge_requests/reload_diffs_service_spec.rb
index a0a27d247fc..21f369a3818 100644
--- a/spec/services/merge_requests/reload_diffs_service_spec.rb
+++ b/spec/services/merge_requests/reload_diffs_service_spec.rb
@@ -57,6 +57,7 @@ describe MergeRequests::ReloadDiffsService, :use_clean_rails_memory_store_cachin
expect(Rails.cache).to receive(:delete).with(old_cache_key).and_call_original
expect(Rails.cache).to receive(:read).with(new_cache_key).and_call_original
expect(Rails.cache).to receive(:write).with(new_cache_key, anything, anything).and_call_original
+
subject.execute
end
end