summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/import_export/avatar_saver_spec.rb
diff options
context:
space:
mode:
authorTravis Miller <travis@travismiller.com>2018-02-28 21:25:54 -0600
committerTravis Miller <travis@travismiller.com>2018-02-28 21:25:54 -0600
commit2b176137c9b5617d38ff89b6f8ed4636018916c9 (patch)
tree764d53a280c42e000820f1e8c80ec7e41ca70dbd /spec/lib/gitlab/import_export/avatar_saver_spec.rb
parent0d8aadeb9df3bd5e4f18e8c22510c2220b74420d (diff)
downloadgitlab-ce-2b176137c9b5617d38ff89b6f8ed4636018916c9.tar.gz
review: instantiate shared import/export object in project method
Diffstat (limited to 'spec/lib/gitlab/import_export/avatar_saver_spec.rb')
-rw-r--r--spec/lib/gitlab/import_export/avatar_saver_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/avatar_saver_spec.rb b/spec/lib/gitlab/import_export/avatar_saver_spec.rb
index e688929b216..78055f3970a 100644
--- a/spec/lib/gitlab/import_export/avatar_saver_spec.rb
+++ b/spec/lib/gitlab/import_export/avatar_saver_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
describe Gitlab::ImportExport::AvatarSaver do
- let(:shared) { Gitlab::ImportExport::Shared.new(project) }
+ let(:shared) { project.import_export }
let(:export_path) { "#{Dir.tmpdir}/project_tree_saver_spec" }
let(:project_with_avatar) { create(:project, avatar: fixture_file_upload(Rails.root + "spec/fixtures/dk.png", "image/png")) }
let(:project) { create(:project) }