initial import
[HTML-AutoConvert.git] / t / 14-rtf-OpenOffice.t
1 #!perl
2
3 BEGIN { chomp($pwd=`pwd`); $ENV{PATH} .= ":$pwd/bin"; };
4
5 use Test::More tests => 2;
6
7 use HTML::AutoConvert;
8
9 my $c = new HTML::AutoConvert;
10
11 my $force = 'OpenOffice';
12 #$c->{'handlers'}{'doc'}{$force}{'weight'} = -1;
13 my @del = grep { $_ ne $force } keys %{ $c->{'handlers'}{'rtf'} };
14 delete($c->{'handlers'}{'rtf'}{$_}) foreach @del;
15
16 my $html = $c->html_convert('t/VEGAN_RECIPES.rtf');
17
18 #match $html against something;
19 like( $html, qr/Gumbo/, 'text has Gumbo' );
20 like( $html, qr/Cheesecake/, 'text has Cheesecake' );
21