Skip to content

Remove create from presenter ci_build specs

What does this MR do and why?

Describe in detail what your merge request does and why.

Relates #378910

Fix Rubocop offense RSpec/FactoryBot/AvoidCreate

Before

Finished in 4.71 seconds (files took 9.53 seconds to load)
3 examples, 0 failures

[TEST PROF INFO] Time spent in factories: 00:01.448 (25.98% of total time)
[TEST PROF INFO] Factories usage

 Total: 9
 Total top-level: 3
 Total time: 00:01.448 (out of 00:10.896)
 Total uniq factories: 6

   total   top-level     total time      time per call      top-level time               name

       2           0        1.2417s            0.6208s             0.0000s        ci_pipeline
       2           0        1.0970s            0.5485s             0.0000s            project
       2           0        0.5155s            0.2578s             0.0000s          namespace
       1           1        0.0067s            0.0067s             0.0067s            license
       1           1        1.1399s            1.1399s             1.1399s        ee_ci_build
       1           1        0.3021s            0.3021s             0.3021s           ci_build

After

Finished in 3.5 seconds (files took 9.64 seconds to load)
3 examples, 0 failures

[TEST PROF INFO] Time spent in factories: 00:00.013 (0.29% of total time)
[TEST PROF INFO] Factories usage

 Total: 1
 Total top-level: 1
 Total time: 00:00.013 (out of 00:09.813)
 Total uniq factories: 1

   total   top-level     total time      time per call      top-level time               name

       1           1        0.0131s            0.0131s             0.0131s            license

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alina Mihaila

Merge request reports

Loading