root/trunk/plagger/t/plugins/Publish-JavaScript/base.t

Revision 1308 (checked in by miyagawa, 14 years ago)

fixed UUV warnings in Publish::JavaScript?

Line 
1 use strict;
2 use FindBin;
3 use File::Spec;
4 use t::TestPlagger;
5
6 test_plugin_deps;
7
8 use Digest::MD5;
9
10 our $url = "file:///$FindBin::Bin/../../samples/rss-full.xml";
11 our $output = $FindBin::Bin . "/" . Digest::MD5::md5_hex($url) . ".js";
12
13 run_like 'input' => 'expected';
14
15 END {
16     unlink $output if $output && -e $output;
17 }
18
19 __END__
20
21 === Test
22 --- input config output_file
23 plugins:
24   - module: Subscription::Config
25     config:
26       feed:
27         - $main::url
28   - module: Publish::JavaScript
29     config:
30       dir: $FindBin::Bin
31 --- expected chomp regexp
32 document\.write
Note: See TracBrowser for help on using the browser.