@@ -19,7 +19,7 @@ class ActiveStorage::VariantWithRecordTest < ActiveSupport::TestCase
19
19
variant = blob . variant ( resize_to_limit : [ 100 , 100 ] )
20
20
21
21
assert_difference -> { blob . variant_records . count } , +1 do
22
- variant . process
22
+ variant . processed
23
23
end
24
24
25
25
assert_match ( /racecar\. jpg/ , variant . url )
@@ -36,13 +36,13 @@ class ActiveStorage::VariantWithRecordTest < ActiveSupport::TestCase
36
36
blob = create_file_blob ( filename : "racecar.jpg" )
37
37
38
38
assert_difference -> { blob . variant_records . count } do
39
- blob . variant ( resize_to_limit : [ 100 , 100 ] ) . process
39
+ blob . variant ( resize_to_limit : [ 100 , 100 ] ) . processed
40
40
end
41
41
42
42
variant = blob . variant ( resize_to_limit : [ 100 , 100 ] )
43
43
44
44
assert_no_difference -> { blob . variant_records . count } do
45
- variant . process
45
+ variant . processed
46
46
end
47
47
48
48
assert_match ( /racecar\. jpg/ , variant . url )
@@ -54,7 +54,7 @@ class ActiveStorage::VariantWithRecordTest < ActiveSupport::TestCase
54
54
55
55
test "variant of a blob is on the same service" do
56
56
blob = create_file_blob ( filename : "racecar.jpg" , service_name : "local_public" )
57
- variant = blob . variant ( resize_to_limit : [ 100 , 100 ] ) . process
57
+ variant = blob . variant ( resize_to_limit : [ 100 , 100 ] ) . processed
58
58
59
59
assert_equal "local_public" , variant . image . blob . service_name
60
60
end
@@ -65,12 +65,12 @@ class ActiveStorage::VariantWithRecordTest < ActiveSupport::TestCase
65
65
66
66
blob1 = directly_upload_file_blob ( filename : "racecar.jpg" )
67
67
assert_difference -> { ActiveStorage ::VariantRecord . count } , +1 do
68
- blob1 . representation ( resize_to_limit : [ 100 , 100 ] ) . process
68
+ blob1 . representation ( resize_to_limit : [ 100 , 100 ] ) . processed
69
69
end
70
70
71
71
blob2 = directly_upload_file_blob ( filename : "racecar_rotated.jpg" )
72
72
assert_difference -> { ActiveStorage ::VariantRecord . count } , +1 do
73
- blob2 . representation ( resize_to_limit : [ 100 , 100 ] ) . process
73
+ blob2 . representation ( resize_to_limit : [ 100 , 100 ] ) . processed
74
74
end
75
75
76
76
assert_no_difference -> { ActiveStorage ::VariantRecord . count } do
@@ -126,12 +126,12 @@ class ActiveStorage::VariantWithRecordTest < ActiveSupport::TestCase
126
126
127
127
blob1 = directly_upload_file_blob ( filename : "racecar.jpg" )
128
128
assert_difference -> { ActiveStorage ::VariantRecord . count } , +1 do
129
- blob1 . representation ( resize_to_limit : [ 100 , 100 ] ) . process
129
+ blob1 . representation ( resize_to_limit : [ 100 , 100 ] ) . processed
130
130
end
131
131
132
132
blob2 = directly_upload_file_blob ( filename : "racecar_rotated.jpg" )
133
133
assert_difference -> { ActiveStorage ::VariantRecord . count } , +1 do
134
- blob2 . representation ( resize_to_limit : [ 100 , 100 ] ) . process
134
+ blob2 . representation ( resize_to_limit : [ 100 , 100 ] ) . processed
135
135
end
136
136
137
137
assert_no_difference -> { ActiveStorage ::VariantRecord . count } do
0 commit comments