Changeset 2671

Show
Ignore:
Timestamp:
07/01/08 11:39:39 (20 months ago)
Author:
takayama
Message:

Fixed to work

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/t/62-asset.t

    r2562 r2671  
    2323    isa_ok($asset, 'MT::Asset::Image', 'Is MT::Asset::Image'); 
    2424 
    25     # method validation\ 
     25    # method validation 
     26    my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time); 
     27    my $cache_path = sprintf("%04d/%02d", $year + 1900, $mon + 1); 
    2628#    is($asset->class, 'Image', 'class'); 
    2729    is($asset->class_label, 'Image', 'class_label'); 
    28     is(($asset->thumbnail_file({Height => 100, Width => 100}))[0], 't/site/assets_c/2008/06/test-thumb-640x480.jpg', 'thumbnail'); 
     30    is(($asset->thumbnail_file({Height => 100, Width => 100}))[0], "t/site/assets_c/$cache_path/test-thumb-640x480.jpg", 'thumbnail'); 
    2931    is($asset->image_width, 640, 'image_width');  
    3032    is($asset->image_height, 480, 'height');