summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-31 21:08:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-31 21:08:25 +0000
commit83c5e07949cb1023dde1d282b3969def6f182472 (patch)
tree6f5980b7a5d79fc9d97c782713423f368c66e572 /spec/lib
parent4747b1ebc408204ff9ac4e6b9afa1d97fcf8c91a (diff)
downloadgitlab-ce-83c5e07949cb1023dde1d282b3969def6f182472.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/bulk_imports/projects/pipelines/references_pipeline_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/bulk_imports/projects/pipelines/references_pipeline_spec.rb b/spec/lib/bulk_imports/projects/pipelines/references_pipeline_spec.rb
index 895d37ea385..3a808851f81 100644
--- a/spec/lib/bulk_imports/projects/pipelines/references_pipeline_spec.rb
+++ b/spec/lib/bulk_imports/projects/pipelines/references_pipeline_spec.rb
@@ -81,6 +81,16 @@ RSpec.describe BulkImports::Projects::Pipelines::ReferencesPipeline, feature_cat
.to include("class=\"gfm gfm-merge_request\">!#{mr.iid}</a></p>")
.and include(project.full_path.to_s)
end
+
+ context 'when object body is nil' do
+ let(:issue) { create(:issue, project: project, description: nil) }
+
+ it 'returns ExtractedData not containing the object' do
+ extracted_data = subject.extract(context)
+
+ expect(extracted_data.data).to contain_exactly(issue_note, mr, mr_note)
+ end
+ end
end
describe '#transform' do