0
0
Fork 0

Disable Rails/SkipsModelValidations cop (#28712)

This commit is contained in:
Matt Jankowski 2024-01-15 08:46:47 -05:00 committed by GitHub
parent b5afbe0a61
commit a2f02a0775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 46 deletions

View file

@ -41,7 +41,7 @@ describe RedownloadAvatarWorker do
it 'reprocesses a remote avatar' do
stub_request(:get, 'https://example.host/file').to_return request_fixture('avatar.txt')
account = Fabricate(:account, avatar_remote_url: 'https://example.host/file')
account.update_column(:avatar_file_name, nil) # rubocop:disable Rails/SkipsModelValidations
account.update_column(:avatar_file_name, nil)
result = worker.perform(account.id)

View file

@ -41,7 +41,7 @@ describe RedownloadHeaderWorker do
it 'reprocesses a remote header' do
stub_request(:get, 'https://example.host/file').to_return request_fixture('avatar.txt')
account = Fabricate(:account, header_remote_url: 'https://example.host/file')
account.update_column(:header_file_name, nil) # rubocop:disable Rails/SkipsModelValidations
account.update_column(:header_file_name, nil)
result = worker.perform(account.id)