Protected packages: Improve readability of spec/requests/api/maven_packages_spec.rb [PART 2]

What does this MR do and why?

test: Improve readability of test by applying table syntax

Applying paramterized table syntax to the test for better readability and avoid the usage of dynamic invocation, e.g. here and here.

Changelog: other

🛠️ with ❤️ at Siemens

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

MR Checklist (@gerardo-navarro)

Screenshots or screen recordings

Only test changes.

How to set up and validate locally

  1. Run the tests
bundle exec rspec spec/requests/api/maven_packages_spec.rb

Related to #323969 (closed)

Edited by Gerardo Navarro

Merge request reports

Loading