I am attaching slightly modified
HTML-FormFu-Model-DBIC/t/default_values/basic.t - it shows that even
though:

# column is inflated
    my $date = $fs->get_field('date_col')->default;
    isa_ok( $date, 'DateTime' );
    is( $date->year,  '2009' );

It still does not render the year as selected:

    like( "$form", qr{<option value="2007"
selected="selected">2007</option>}, 'Year rendered properly' );  #this
fails


-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/

Attachment: basic.t
Description: Troff document

_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to