Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-13 21:12:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-13 21:12:40 +0300
commitcb6a3f5f73097b995d8465c2472ceeab9bbe9497 (patch)
tree29c645739d09cccc5f1629626cc0f0d2b94040bb /spec/workers/create_note_diff_file_worker_spec.rb
parent60be8b19d4772b00110506e4bd6294989915b1e6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/create_note_diff_file_worker_spec.rb')
-rw-r--r--spec/workers/create_note_diff_file_worker_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/workers/create_note_diff_file_worker_spec.rb b/spec/workers/create_note_diff_file_worker_spec.rb
index c4cf9a47636..6d1d6d93e44 100644
--- a/spec/workers/create_note_diff_file_worker_spec.rb
+++ b/spec/workers/create_note_diff_file_worker_spec.rb
@@ -23,5 +23,14 @@ RSpec.describe CreateNoteDiffFileWorker do
described_class.new.perform(non_existing_record_id)
end
end
+
+ context "when called with a missing diff_note id" do
+ it "returns nil without creating diff file" do
+ expect_any_instance_of(DiffNote).not_to receive(:create_diff_file)
+ .and_call_original
+
+ described_class.new.perform(nil)
+ end
+ end
end
end