diff options
author | Travis Miller <travis@travismiller.com> | 2018-02-28 21:25:54 -0600 |
---|---|---|
committer | Travis Miller <travis@travismiller.com> | 2018-02-28 21:25:54 -0600 |
commit | 2b176137c9b5617d38ff89b6f8ed4636018916c9 (patch) | |
tree | 764d53a280c42e000820f1e8c80ec7e41ca70dbd /spec/lib/gitlab/import_export/avatar_saver_spec.rb | |
parent | 0d8aadeb9df3bd5e4f18e8c22510c2220b74420d (diff) | |
download | gitlab-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.rb | 2 |
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) } |