summaryrefslogtreecommitdiff
path: root/spec/lib/api/entities/package_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-11 09:09:11 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-11 09:09:11 +0000
commite348fb4c1b9eaf21655001dc4346ceb0c0c3d5b4 (patch)
treec11afe15edfe85d809ab0be78a6f52a539d28bec /spec/lib/api/entities/package_spec.rb
parentce567e98da6118031576d9084d3e05473746e4c6 (diff)
downloadgitlab-ce-e348fb4c1b9eaf21655001dc4346ceb0c0c3d5b4.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/api/entities/package_spec.rb')
-rw-r--r--spec/lib/api/entities/package_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/api/entities/package_spec.rb b/spec/lib/api/entities/package_spec.rb
index 9288f6fe8eb..53d9a0b4557 100644
--- a/spec/lib/api/entities/package_spec.rb
+++ b/spec/lib/api/entities/package_spec.rb
@@ -40,4 +40,13 @@ RSpec.describe API::Entities::Package do
expect(subject[:_links]).not_to have_key(:web_path)
end
end
+
+ context 'with build info' do
+ let_it_be(:project) { create(:project) }
+ let_it_be(:package) { create(:npm_package, :with_build, project: project) }
+
+ it 'returns an empty array for pipelines' do
+ expect(subject[:pipelines]).to eq([])
+ end
+ end
end