root/trunk/plagger/t/plugins/Publish-CHTML/publish.t

Revision 1536 (checked in by takesako, 14 years ago)

add checking title at Publish-CHTML/publish.t

Line 
1 use strict;
2 use t::TestPlagger;
3 use FindBin;
4 use File::Path;
5
6 test_plugin_deps;
7
8 our $output = "$FindBin::Bin/tmp/index.html";
9
10 mkpath "$FindBin::Bin/tmp";
11
12 plan 'no_plan';
13 run_eval_expected;
14
15 END {
16      unlink $output if $output && -e $output;
17      rmtree "$FindBin::Bin/tmp";
18 }
19
20 __END__
21
22 === PDF
23 --- input config output_file
24 global:
25    assets_path: $t::TestPlagger::BaseDir/assets
26 plugins:
27   - module: Subscription::Config
28     config:
29       feed:
30         - file://$t::TestPlagger::BaseDirURI/t/samples/rss2sample.xml
31   - module: Publish::CHTML
32     config:
33       work: $FindBin::Bin/tmp
34       title: Boofy
35 --- expected
36 file_contains($main::output, qr{<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">});
37 file_contains($main::output, qr{<title>Boofy</title>});
Note: See TracBrowser for help on using the browser.