From a0a8f9325fc6274b2cd24f8c28c09ff71f516662 Mon Sep 17 00:00:00 2001 From: Vasily Fedoseyev Date: Tue, 9 Apr 2024 00:24:10 +0300 Subject: [PATCH] Rubocop --- test/storage/no_cache_s3_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/storage/no_cache_s3_test.rb b/test/storage/no_cache_s3_test.rb index ded6962..eb7242d 100644 --- a/test/storage/no_cache_s3_test.rb +++ b/test/storage/no_cache_s3_test.rb @@ -108,7 +108,8 @@ class NoCacheS3Test < Test::Unit::TestCase setup do Sidekiq::Testing.fake! Dummy::AvatarAttachment.any_instance.stubs(:download_from_store).returns(stub_file('pixel.gif', @gif_pixel)) - @instance.update_columns avatar_file_name: 'foo.gif', avatar_content_type: 'image/gif', avatar_synced_to_store_1: true + @instance.update_columns avatar_file_name: 'foo.gif', avatar_content_type: 'image/gif', + avatar_synced_to_store_1: true end should "delete tmp files" do @@ -118,7 +119,7 @@ class NoCacheS3Test < Test::Unit::TestCase end end - context "with delayed_paperclip process_in_background" do + context "with delayed_paperclip process_in_background" do # rubocop:disable Style/MultilineIfModifier setup do Dummy.process_in_background(:avatar) Sidekiq::Testing.fake! @@ -129,7 +130,7 @@ class NoCacheS3Test < Test::Unit::TestCase access_key_id: 'test', secret_access_key: 'testpassword', endpoint: 'http://localhost:9002', region: 'laplandia', force_path_style: true )).bucket("bucketname") - @instance.avatar.class.stubs(:stores).returns({ store_1: bucket }) + @instance.avatar.class.stubs(:stores).returns({ store_1: bucket }) end should "add job and process" do