diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-07 21:09:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-07 21:09:51 +0300 |
commit | 9ee2305f46a2b3d1d1e8a1f1182512599a74dbe1 (patch) | |
tree | 82c0631433839156f7d2fa88a5026c385b2b5703 /spec/factories | |
parent | 9498dc957345829f29fe0bc4e55c969783b457be (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/packages/helm/file_metadatum.rb | 6 | ||||
-rw-r--r-- | spec/factories/packages/npm/metadata.rb | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/factories/packages/helm/file_metadatum.rb b/spec/factories/packages/helm/file_metadatum.rb index 590956e5d49..a15f9f386d5 100644 --- a/spec/factories/packages/helm/file_metadatum.rb +++ b/spec/factories/packages/helm/file_metadatum.rb @@ -10,9 +10,9 @@ FactoryBot.define do sequence(:channel) { |n| "#{FFaker::Lorem.word}-#{n}" } metadata do { - 'name': package_file.package.name, - 'version': package_file.package.version, - 'apiVersion': 'v2' + name: package_file.package.name, + version: package_file.package.version, + apiVersion: 'v2' }.tap do |defaults| defaults['description'] = description if description end diff --git a/spec/factories/packages/npm/metadata.rb b/spec/factories/packages/npm/metadata.rb index c8acaa10199..dfdcc3409f9 100644 --- a/spec/factories/packages/npm/metadata.rb +++ b/spec/factories/packages/npm/metadata.rb @@ -6,11 +6,11 @@ FactoryBot.define do package_json do { - 'name': package.name, - 'version': package.version, - 'dist': { - 'tarball': 'http://localhost/tarball.tgz', - 'shasum': '1234567890' + name: package.name, + version: package.version, + dist: { + tarball: 'http://localhost/tarball.tgz', + shasum: '1234567890' } } end |