Fix tree_restorer spec
This MR removes Feature.enable( from specs, since it seems that is causing problems in some cases, and we have some failed pipelines and broken master because of it:
- https://gitlab.com/gitlab-org/gitlab/-/jobs/502992547
- https://gitlab.com/gitlab-org/gitlab/-/jobs/502996703
Broken pipelines are happening only for tree_restorer_specs.rb
, but we used a similar approach in tree_saver_specs.rb
as well. So I fixed tests there too. It should be safer, and consistent this way.
Instead, we will use stub_feature_flags(project_import_ndjson: true)
under RSpec::Mocks.with_temporary_scope
Closes: #213793 (comment 319802744)
Conformity
Edited by 🤖 GitLab Bot 🤖