Skip to content

Use build in PgFullTextSearchable tests

Alina Mihaila requested to merge am-use-build-in-FullTextSearchable-spec into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Use build(:project) instead of create(project)

Before

Finished in 14.37 seconds (files took 26.82 seconds to load)
19 examples, 0 failures

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

 Total: 35
 Total top-level: 18
 Total time: 00:04.085 (out of 00:37.199)
 Total uniq factories: 3

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

      17          17        4.0780s            0.2399s             4.0780s            project
      17           0        1.7596s            0.1035s             0.0000s          namespace
       1           1        0.0080s            0.0080s             0.0080s            license

After

Finished in 11.58 seconds (files took 12.37 seconds to load)
19 examples, 0 failures

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

 Total: 1
 Total top-level: 1
 Total time: 00:00.006 (out of 00:17.588)
 Total uniq factories: 1

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

       1           1        0.0070s            0.0070s             0.0070s            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.

Merge request reports