summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-05-10 17:15:20 +0200
committerJames Lopez <james@jameslopez.es>2016-05-10 17:15:20 +0200
commita5d59f075a4a9a301ef985eb7cc6cdfdf3e73955 (patch)
tree4ba912caf343c7a1d0fd77894f368a400065aec5 /spec
parent6a12ff6345e517af9cf07cb61f3a0ea85562f399 (diff)
downloadgitlab-ce-a5d59f075a4a9a301ef985eb7cc6cdfdf3e73955.tar.gz
added better error handling. Also refactored some of the code and fixed a few issues in project_tree_saver
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/import_export/import_export_reader_spec.rb4
1 files changed, 2 insertions, 2 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 f826c5ec8e6..2fc9a39c68b 100644
--- a/spec/lib/gitlab/import_export/import_export_reader_spec.rb
+++ b/spec/lib/gitlab/import_export/import_export_reader_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
describe Gitlab::ImportExport::ImportExportReader do
-
+ let(:shared) { Gitlab::ImportExport::Shared.new(relative_path:'') }
let(:test_config) { 'spec/support/import_export/import_export.yml' }
let(:project_tree_hash) do
{
@@ -17,6 +17,6 @@ describe Gitlab::ImportExport::ImportExportReader do
end
it 'should generate hash from project tree config' do
- expect(described_class.new(config: test_config).project_tree) =~ (project_tree_hash)
+ expect(described_class.new(config: test_config, shared: shared).project_tree) =~ (project_tree_hash)
end
end