From df2eda3f14dccb703bd7054d4ddde7803cb1fe7e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 20 Feb 2020 18:08:51 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/lib/gitlab/sanitizers/exif_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/lib/gitlab/sanitizers') diff --git a/spec/lib/gitlab/sanitizers/exif_spec.rb b/spec/lib/gitlab/sanitizers/exif_spec.rb index f0b733817b3..58fba673f8e 100644 --- a/spec/lib/gitlab/sanitizers/exif_spec.rb +++ b/spec/lib/gitlab/sanitizers/exif_spec.rb @@ -7,9 +7,9 @@ describe Gitlab::Sanitizers::Exif do describe '#batch_clean' do context 'with image uploads' do - set(:upload1) { create(:upload, :with_file, :issuable_upload) } - set(:upload2) { create(:upload, :with_file, :personal_snippet_upload) } - set(:upload3) { create(:upload, :with_file, created_at: 3.days.ago) } + let_it_be(:upload1) { create(:upload, :with_file, :issuable_upload) } + let_it_be(:upload2) { create(:upload, :with_file, :personal_snippet_upload) } + let_it_be(:upload3) { create(:upload, :with_file, created_at: 3.days.ago) } it 'processes all uploads if range ID is not set' do expect(sanitizer).to receive(:clean).exactly(3).times -- cgit v1.2.3