From f01e2498905ec057e6c8872d15f8dea18d4cbde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Sun, 22 Apr 2018 23:40:42 +0200 Subject: Rename ActiveStorage.processor to .variant_processor --- activestorage/test/models/variant_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activestorage/test') diff --git a/activestorage/test/models/variant_test.rb b/activestorage/test/models/variant_test.rb index 1af315b664..f6b6579d7d 100644 --- a/activestorage/test/models/variant_test.rb +++ b/activestorage/test/models/variant_test.rb @@ -27,7 +27,7 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase test "center-weighted crop of JPEG blob" do begin - ActiveStorage.processor = nil + ActiveStorage.variant_processor = nil blob = create_file_blob(filename: "racecar.jpg") variant = ActiveSupport::Deprecation.silence do blob.variant(combine_options: { @@ -42,7 +42,7 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase assert_equal 100, image.width assert_equal 100, image.height ensure - ActiveStorage.processor = :mini_magick + ActiveStorage.variant_processor = :mini_magick end end @@ -90,7 +90,7 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase test "works for vips processor" do begin - ActiveStorage.processor = :vips + ActiveStorage.variant_processor = :vips blob = create_file_blob(filename: "racecar.jpg") variant = blob.variant(thumbnail_image: 100).processed @@ -100,7 +100,7 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase rescue LoadError # libvips not installed ensure - ActiveStorage.processor = :mini_magick + ActiveStorage.variant_processor = :mini_magick end end end -- cgit v1.2.3