diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /spec/requests/lfs_http_spec.rb | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'spec/requests/lfs_http_spec.rb')
-rw-r--r-- | spec/requests/lfs_http_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/lfs_http_spec.rb b/spec/requests/lfs_http_spec.rb index fd4261fb50d..31bb0586e9f 100644 --- a/spec/requests/lfs_http_spec.rb +++ b/spec/requests/lfs_http_spec.rb @@ -786,7 +786,7 @@ RSpec.describe 'Git LFS API and storage' do let(:authorization) { authorize_deploy_key } let(:update_user_permissions) do - project.deploy_keys_projects.create(deploy_key: key, can_push: true) + project.deploy_keys_projects.create!(deploy_key: key, can_push: true) end it_behaves_like 'pushes new LFS objects', renew_authorization: false @@ -991,7 +991,7 @@ RSpec.describe 'Git LFS API and storage' do context 'and workhorse requests upload finalize for a new LFS object' do before do - lfs_object.destroy + lfs_object.destroy! end context 'with object storage disabled' do @@ -1009,7 +1009,7 @@ RSpec.describe 'Git LFS API and storage' do end let(:tmp_object) do - fog_connection.directories.new(key: 'lfs-objects').files.create( + fog_connection.directories.new(key: 'lfs-objects').files.create( # rubocop: disable Rails/SaveBang key: 'tmp/uploads/12312300', body: 'content' ) @@ -1080,7 +1080,7 @@ RSpec.describe 'Git LFS API and storage' do context 'without the lfs object' do before do - lfs_object.destroy + lfs_object.destroy! end it 'rejects slashes in the tempfile name (path traversal)' do |