Commit 4020b0f5 authored by James Lopez's avatar James Lopez

few changes based on MR feedback

parent bd5c749f
...@@ -22,7 +22,7 @@ module Gitlab ...@@ -22,7 +22,7 @@ module Gitlab
private private
def project_json_tree def project_json_tree
@project.to_json(Gitlab::ImportExport::ImportExportReader.new(shared: @shared).project_tree) @project.to_json(Gitlab::ImportExport::Reader.new(shared: @shared).project_tree)
end end
end end
end end
......
module Gitlab module Gitlab
module ImportExport module ImportExport
class ImportExportReader class Reader
def initialize(shared:) def initialize(shared:)
@shared = shared @shared = shared
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::ImportExport::ImportExportReader, lib: true do describe Gitlab::ImportExport::Reader, lib: true do
let(:shared) { Gitlab::ImportExport::Shared.new(relative_path:'') } let(:shared) { Gitlab::ImportExport::Shared.new(relative_path:'') }
let(:test_config) { 'spec/support/import_export/import_export.yml' } let(:test_config) { 'spec/support/import_export/import_export.yml' }
let(:project_tree_hash) do let(:project_tree_hash) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment