Skip to content

Use fast_spec_helper in stub_method_calls_spec

Alina Mihaila requested to merge am-use-fast-spec-helper-stub-method-calls into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Before

➜  gitlab git:(master) bin/rspec spec/support_specs/helpers/stub_method_calls_spec.rb    

warning: parser/current is loading parser/ruby27, which recognizes2.7.6-compliant syntax, but you are running 2.7.5.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}

Test environment set up in 4.833942 seconds
........

Finished in 6.91 seconds (files took 8.12 seconds to load)
8 examples, 0 failures

[TEST PROF INFO] Time spent in factories: 00:00.007 (0.1% of total time)

After

➜  gitlab git:(master) bin/rspec spec/support_specs/helpers/stub_method_calls_spec.rb

Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}
........

Finished in 0.00344 seconds (files took 1.09 seconds to load)
8 examples, 0 failures

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