summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/import_export/import_export_reader_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/import_export/import_export_reader_spec.rb')
-rw-r--r--spec/lib/gitlab/import_export/import_export_reader_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/import_export_reader_spec.rb b/spec/lib/gitlab/import_export/import_export_reader_spec.rb
index c4d03fecd54..19f9bdc8d3f 100644
--- a/spec/lib/gitlab/import_export/import_export_reader_spec.rb
+++ b/spec/lib/gitlab/import_export/import_export_reader_spec.rb
@@ -16,7 +16,11 @@ describe Gitlab::ImportExport::ImportExportReader, lib: true do
}
end
+ before do
+ allow_any_instance_of(Gitlab::ImportExport).to receive(:config_file).and_return(test_config)
+ end
+
it 'generates hash from project tree config' do
- expect(described_class.new(config: test_config, shared: shared).project_tree).to match(project_tree_hash)
+ expect(described_class.new(shared: shared).project_tree).to match(project_tree_hash)
end
end