From d8252efea9c0b8ad18275318e0af762f3b5ba59b Mon Sep 17 00:00:00 2001 From: James Lopez Date: Fri, 22 Jun 2018 09:55:16 +0200 Subject: [PATCH] fix spec --- spec/lib/gitlab/import_export/project_tree_restorer_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb index 612f1ba4043..bac5693c830 100644 --- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb +++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb @@ -402,11 +402,9 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do group: create(:group)) end - before do - project_tree_restorer.instance_variable_set(:@path, "spec/lib/gitlab/import_export/project.milestone-iid.json") - end - it 'preserves the project milestone IID' do + project_tree_restorer.instance_variable_set(:@path, "spec/lib/gitlab/import_export/project.milestone-iid.json") + expect_any_instance_of(Gitlab::ImportExport::Shared).not_to receive(:error) restored_project_json