@@ -39,11 +39,17 @@ def test_image_pack_tag
39
39
"<img alt=\" Edit Entry\" src=\" /packs/application-k344a6d59eef8632c9d1.png\" width=\" 16\" height=\" 10\" />" ,
40
40
image_pack_tag ( "application.png" , size : "16x10" , alt : "Edit Entry" )
41
41
assert_equal \
42
- "<img alt=\" Edit Entry\" src=\" /packs/media/image-c38deda30895059837cf.jpg\" width=\" 16\" height=\" 10\" />" ,
42
+ "<img alt=\" Edit Entry\" src=\" /packs/media/images/ image-c38deda30895059837cf.jpg\" width=\" 16\" height=\" 10\" />" ,
43
43
image_pack_tag ( "image.jpg" , size : "16x10" , alt : "Edit Entry" )
44
44
assert_equal \
45
- "<img alt=\" Edit Entry\" src=\" /packs/media/image-c38deda30895059837cf.jpg\" width=\" 16\" height=\" 10\" />" ,
46
- image_pack_tag ( "media/image.jpg" , size : "16x10" , alt : "Edit Entry" )
45
+ "<img alt=\" Edit Entry\" src=\" /packs/media/images/image-c38deda30895059837cf.jpg\" width=\" 16\" height=\" 10\" />" ,
46
+ image_pack_tag ( "media/images/image.jpg" , size : "16x10" , alt : "Edit Entry" )
47
+ assert_equal \
48
+ "<img alt=\" Edit Entry\" src=\" /packs/media/images/nested/image-c38deda30895059837cf.jpg\" width=\" 16\" height=\" 10\" />" ,
49
+ image_pack_tag ( "nested/image.jpg" , size : "16x10" , alt : "Edit Entry" )
50
+ assert_equal \
51
+ "<img alt=\" Edit Entry\" src=\" /packs/media/images/nested/image-c38deda30895059837cf.jpg\" width=\" 16\" height=\" 10\" />" ,
52
+ image_pack_tag ( "media/images/nested/image.jpg" , size : "16x10" , alt : "Edit Entry" )
47
53
end
48
54
49
55
def test_javascript_pack_tag
0 commit comments