Skip to content

Fix tree_restorer spec

Nikola Milojevic requested to merge fix-for-tree-restorer-spec into master

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:

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 🤖

Merge request reports