aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test
diff options
context:
space:
mode:
authorJanko Marohnić <janko.marohnic@gmail.com>2018-04-22 23:40:42 +0200
committerJanko Marohnić <janko.marohnic@gmail.com>2018-04-22 23:40:42 +0200
commitf01e2498905ec057e6c8872d15f8dea18d4cbde8 (patch)
tree1bea7946fd93571a3e12841409179571b05495ce /activestorage/test
parentca1296858788780dcb5497e86f66b56170cca279 (diff)
downloadrails-f01e2498905ec057e6c8872d15f8dea18d4cbde8.tar.gz
rails-f01e2498905ec057e6c8872d15f8dea18d4cbde8.tar.bz2
rails-f01e2498905ec057e6c8872d15f8dea18d4cbde8.zip
Rename ActiveStorage.processor to .variant_processor
Diffstat (limited to 'activestorage/test')
-rw-r--r--activestorage/test/models/variant_test.rb8
1 files changed, 4 insertions, 4 deletions
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