diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-14 00:09:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-14 00:09:09 +0300 |
commit | 04cc87ee46c1c0b6b4eb7df964b3115dd2578877 (patch) | |
tree | 2c64b0e21804fc0981a2142eb83a0b73d85fbcda /spec/uploaders | |
parent | 4a064b8dc0bf350b1b3000698042b49113e758d1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/uploaders')
-rw-r--r-- | spec/uploaders/file_uploader_spec.rb | 4 | ||||
-rw-r--r-- | spec/uploaders/namespace_file_uploader_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/uploaders/file_uploader_spec.rb b/spec/uploaders/file_uploader_spec.rb index 3340725dd6d..6d4843b6bbf 100644 --- a/spec/uploaders/file_uploader_spec.rb +++ b/spec/uploaders/file_uploader_spec.rb @@ -90,9 +90,9 @@ RSpec.describe FileUploader do shared_examples 'returns a valid uploader' do describe 'returned uploader' do it 'generates a new secret' do - expect(subject).to be + expect(subject).to be_present expect(described_class).to receive(:generate_secret).once.and_call_original - expect(moved).to be + expect(moved).to be_present end it 'creates new upload correctly' do diff --git a/spec/uploaders/namespace_file_uploader_spec.rb b/spec/uploaders/namespace_file_uploader_spec.rb index 99bf4e130f2..02381123ba5 100644 --- a/spec/uploaders/namespace_file_uploader_spec.rb +++ b/spec/uploaders/namespace_file_uploader_spec.rb @@ -73,9 +73,9 @@ RSpec.describe NamespaceFileUploader do shared_examples 'returns a valid uploader' do it 'generates a new secret' do - expect(subject).to be + expect(subject).to be_present expect(described_class).to receive(:generate_secret).once.and_call_original - expect(moved).to be + expect(moved).to be_present end it 'creates new upload correctly' do |