diff options
Diffstat (limited to 't/format.t')
-rw-r--r-- | t/format.t | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -5,3 +5,2 @@ use warnings; use Test::More; -use autodie; @@ -16,5 +15,3 @@ isa_ok($hp,'Test::HAProxy'); my $s; -open(my $fh, '>', \$s); -$hp->write($fh); -close $fh; +$hp->write(\$s); @@ -35,5 +32,3 @@ backend out -open($fh, '>', \$s); -$hp->write($fh, indent => 2); -close $fh; +$hp->write(\$s, indent => 2); @@ -54,5 +49,3 @@ backend out -open($fh, '>', \$s); -$hp->write($fh, indent => 2, reindent_comments => 1); -close $fh; +$hp->write(\$s, indent => 2, reindent_comments => 1); @@ -73,5 +66,3 @@ backend out -open($fh, '>', \$s); -$hp->write($fh, indent => 4, tabstop => [ 10, 24 ]); -close $fh; +$hp->write(\$s, indent => 4, tabstop => [ 10, 24 ]); |