summaryrefslogtreecommitdiff
path: root/t/format.t
diff options
context:
space:
mode:
Diffstat (limited to 't/format.t')
-rw-r--r--t/format.t17
1 files changed, 4 insertions, 13 deletions
diff --git a/t/format.t b/t/format.t
index 06b9884..2d124fc 100644
--- a/t/format.t
+++ b/t/format.t
@@ -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 ]);

Return to:

Send suggestions and report system problems to the System administrator.