add image handling and prevent leaking temporary files (ourselves, Archive::Zip might be)
[HTML-AutoConvert.git] / t / 15-rtf-unrtf.t
1 #!perl
2
3 use Test::More tests => 2;
4
5 use HTML::AutoConvert;
6
7 my $c = new HTML::AutoConvert;
8
9 my $force = 'unrtf';
10 #$c->{'handlers'}{'doc'}{$force}{'weight'} = -1;
11 my @del = grep { $_ ne $force } keys %{ $c->{'handlers'}{'rtf'} };
12 delete($c->{'handlers'}{'rtf'}{$_}) foreach @del;
13
14 my $html = $c->html_convert('t/VEGAN_RECIPES.rtf');
15
16 #match $html against something;
17 like( $html, qr/Gumbo/, 'text has Gumbo' );
18 like( $html, qr/Cheesecake/, 'text has Cheesecake' );
19