diff options
author | James Lopez <james@jameslopez.es> | 2018-07-10 16:23:45 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-07-10 16:23:45 +0200 |
commit | 2c1e66d4d2124ec3d6101a6c5586867139f6fd20 (patch) | |
tree | de07b9b46ac24a866d196e57472df5f9e70bc288 /spec | |
parent | 874a4ff16ab883f3b22f8e11474522af120bfa86 (diff) | |
download | gitlab-ce-2c1e66d4d2124ec3d6101a6c5586867139f6fd20.tar.gz |
Fix avatar saver and spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/import_export/avatar_saver_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/lib/gitlab/import_export/avatar_saver_spec.rb b/spec/lib/gitlab/import_export/avatar_saver_spec.rb index 2223f163177..792596bfaa5 100644 --- a/spec/lib/gitlab/import_export/avatar_saver_spec.rb +++ b/spec/lib/gitlab/import_export/avatar_saver_spec.rb @@ -9,6 +9,7 @@ describe Gitlab::ImportExport::AvatarSaver do before do FileUtils.mkdir_p("#{shared.export_path}/avatar/") allow_any_instance_of(Gitlab::ImportExport).to receive(:storage_path).and_return(export_path) + stub_feature_flags(import_export_object_storage: false) end after do @@ -18,6 +19,8 @@ describe Gitlab::ImportExport::AvatarSaver do it 'saves a project avatar' do described_class.new(project: project_with_avatar, shared: shared).save + puts "#{shared.export_path}/avatar/dk.png" + expect(File).to exist("#{shared.export_path}/avatar/dk.png") end |