6
use subs qw(path tempdir);
8
plan skip_all => 'pandoc executable required' unless pandoc;
9
plan skip_all => 'Path::Tiny required'
10
unless eval 'use Path::Tiny qw(path tempdir); 1;';
12
my $dir = tempdir( CLEANUP => 1 );
14
(my $input = $dir->child('input.md'))->spew_utf8(<<'DUMMY_TEXT');
17
Qui aut voluptate minima.
19
note $input->slurp_utf8;
21
my $output = $dir->child('output.html');
23
lives_ok { pandoc->run(-o => $output, $input) } 'call pandoc with file objects as arguments';
24
note $output->slurp_utf8;