diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /spec/lib/gitlab/import_export/lfs_saver_spec.rb | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'spec/lib/gitlab/import_export/lfs_saver_spec.rb')
-rw-r--r-- | spec/lib/gitlab/import_export/lfs_saver_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/import_export/lfs_saver_spec.rb b/spec/lib/gitlab/import_export/lfs_saver_spec.rb index 55b4f7479b8..84bd782c467 100644 --- a/spec/lib/gitlab/import_export/lfs_saver_spec.rb +++ b/spec/lib/gitlab/import_export/lfs_saver_spec.rb @@ -34,13 +34,13 @@ RSpec.describe Gitlab::ImportExport::LfsSaver do end it 'does not cause errors' do - saver.save + saver.save # rubocop:disable Rails/SaveBang expect(shared.errors).to be_empty end it 'copies the file in the correct location when there is an lfs object' do - saver.save + saver.save # rubocop:disable Rails/SaveBang expect(File).to exist("#{shared.export_path}/lfs-objects/#{lfs_object.oid}") end @@ -61,7 +61,7 @@ RSpec.describe Gitlab::ImportExport::LfsSaver do end it 'saves a json file correctly' do - saver.save + saver.save # rubocop:disable Rails/SaveBang expect(File.exist?(lfs_json_file)).to eq(true) expect(lfs_json).to eq( @@ -96,7 +96,7 @@ RSpec.describe Gitlab::ImportExport::LfsSaver do expect(fake_uri).to receive(:open).and_return(StringIO.new('LFS file content')) expect(URI).to receive(:parse).with('http://my-object-storage.local').and_return(fake_uri) - saver.save + saver.save # rubocop:disable Rails/SaveBang expect(File.read(exported_file_path)).to eq('LFS file content') end |