summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-05-06 17:55:06 +0200
committerJames Lopez <james@jameslopez.es>2016-05-06 17:55:06 +0200
commit8ac53eb5d0dcc6d0248a8b178a3c1b5f2d2284e1 (patch)
tree1e2da8799bb8e20fb92343bce6ac67fc9fa21546 /spec
parentb6ab4a311396d12cdb686df885fe48c58ea31218 (diff)
downloadgitlab-ce-8ac53eb5d0dcc6d0248a8b178a3c1b5f2d2284e1.tar.gz
started refactoring import export reader - WIP
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/import_export/import_export_reader_spec.rb4
1 files changed, 1 insertions, 3 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 0b2da73a225..6be2289b5a0 100644
--- a/spec/lib/gitlab/import_export/import_export_reader_spec.rb
+++ b/spec/lib/gitlab/import_export/import_export_reader_spec.rb
@@ -17,8 +17,6 @@ describe Gitlab::ImportExport::ImportExportReader do
end
it 'should generate hash from project tree config' do
- allow(described_class).to receive(:config).and_return(YAML.load_file(test_config).deep_symbolize_keys)
-
- expect(described_class.project_tree).to eq(project_tree_hash)
+ expect(described_class.new(config: test_config).project_tree).to eq(project_tree_hash)
end
end