@@ -31,7 +31,7 @@ def test_should_generate_a_valid_url_when_src_is_slash
3131 )
3232 )
3333
34- expected = "https://ik.imagekit.io/test_url_endpoint/ "
34+ expected = "https://ik.imagekit.io/test_url_endpoint"
3535 assert_equal ( expected , url )
3636 end
3737
@@ -93,7 +93,7 @@ def test_by_default_transformation_position_should_be_query
9393 )
9494 )
9595
96- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300:rt-90"
96+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 :rt-90"
9797 assert_equal ( expected , url )
9898 end
9999
@@ -114,7 +114,7 @@ def test_should_generate_the_url_without_sdk_version
114114 )
115115 )
116116
117- expected = "https://ik.imagekit.io/test_url_endpoint/tr:w-400, h-300/test_path.jpg"
117+ expected = "https://ik.imagekit.io/test_url_endpoint/tr:h-300,w-400 /test_path.jpg"
118118 assert_equal ( expected , url )
119119 end
120120
@@ -135,7 +135,7 @@ def test_should_generate_the_correct_url_with_a_valid_src_and_transformation
135135 )
136136 )
137137
138- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300"
138+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 "
139139 assert_equal ( expected , url )
140140 end
141141
@@ -156,7 +156,7 @@ def test_should_add_transformation_as_query_when_src_has_absolute_url_even_if_tr
156156 )
157157 )
158158
159- expected = "https://my.custom.domain.com/test_path.jpg?tr=w-400, h-300"
159+ expected = "https://my.custom.domain.com/test_path.jpg?tr=h-300,w-400 "
160160 assert_equal ( expected , url )
161161 end
162162
@@ -177,7 +177,7 @@ def test_should_generate_correct_url_when_src_has_query_params
177177 )
178178 )
179179
180- expected = "https://ik.imagekit.io/imagekit_id/new-endpoint/test_path.jpg?t1=v1&tr=w-400, h-300"
180+ expected = "https://ik.imagekit.io/imagekit_id/new-endpoint/test_path.jpg?t1=v1&tr=h-300,w-400 "
181181 assert_equal ( expected , url )
182182 end
183183
@@ -198,7 +198,7 @@ def test_should_generate_the_correct_url_when_the_provided_path_contains_multipl
198198 )
199199 )
200200
201- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300"
201+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 "
202202 assert_equal ( expected , url )
203203 end
204204
@@ -219,7 +219,7 @@ def test_should_generate_the_correct_url_when_the_url_endpoint_is_overridden
219219 )
220220 )
221221
222- expected = "https://ik.imagekit.io/test_url_endpoint_alt/test_path.jpg?tr=w-400, h-300"
222+ expected = "https://ik.imagekit.io/test_url_endpoint_alt/test_path.jpg?tr=h-300,w-400 "
223223 assert_equal ( expected , url )
224224 end
225225
@@ -240,7 +240,7 @@ def test_should_generate_the_correct_url_with_transformation_position_as_query_p
240240 )
241241 )
242242
243- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300"
243+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 "
244244 assert_equal ( expected , url )
245245 end
246246
@@ -261,7 +261,7 @@ def test_should_generate_the_correct_url_with_a_valid_src_parameter_and_transfor
261261 )
262262 )
263263
264- expected = "https://ik.imagekit.io/test_url_endpoint/test_path_alt.jpg?tr=w-400, h-300"
264+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path_alt.jpg?tr=h-300,w-400 "
265265 assert_equal ( expected , url )
266266 end
267267
@@ -288,7 +288,7 @@ def test_should_merge_query_parameters_correctly_in_the_generated_url
288288 )
289289 )
290290
291- expected = "https://ik.imagekit.io/test_url_endpoint/test_path_alt.jpg?t1=v1&t2=v2&t3=v3&tr=w-400, h-300"
291+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path_alt.jpg?t1=v1&t2=v2&t3=v3&tr=h-300,w-400 "
292292 assert_equal ( expected , url )
293293 end
294294
@@ -312,7 +312,7 @@ def test_should_generate_the_correct_url_with_chained_transformations
312312 )
313313 )
314314
315- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300:rt-90"
315+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 :rt-90"
316316 assert_equal ( expected , url )
317317 end
318318
@@ -336,7 +336,7 @@ def test_should_generate_the_correct_url_with_chained_transformations_including_
336336 )
337337 )
338338
339- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300:rndm_trnsf-abcd"
339+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 :rndm_trnsf-abcd"
340340 assert_equal ( expected , url )
341341 end
342342
@@ -358,7 +358,7 @@ def test_should_generate_the_correct_url_when_border_transformation_is_applied
358358 )
359359 )
360360
361- expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=w-400, h-300,b-20_FF0000"
361+ expected = "https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400 ,b-20_FF0000"
362362 assert_equal ( expected , url )
363363 end
364364
0 commit comments