aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/variation_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/variation_test.rb b/test/variation_test.rb
index 3b05095292..bc47244468 100644
--- a/test/variation_test.rb
+++ b/test/variation_test.rb
@@ -7,9 +7,7 @@ class ActiveStorage::VariationTest < ActiveSupport::TestCase
blob = ActiveStorage::Blob.create_after_upload! \
io: File.open(File.expand_path("../fixtures/files/racecar.jpg", __FILE__)), filename: "racecar.jpg", content_type: "image/jpeg"
- variation_key = ActiveStorage::Variant.encode_key(resize: "500x500")
-
- variant = ActiveStorage::Variant.lookup(blob_key: blob.key, variation_key: variation_key)
+ variant = blob.variant(resize: "100x100")
assert_match /racecar.jpg/, variant.url
end