drop IO::Scalar prereq
Graham Knop [Fri, 13 Apr 2018 10:05:03 +0000 (12:05 +0200)]
Makefile.PL
t/lib/TestAppUnicode/Controller/Root.pm
t/unicode_plugin_live.t

index 9f373b8..393ebc0 100644 (file)
@@ -16,7 +16,6 @@ my %META = (
         'Test::Fatal' => 0,
         'Test::More' => '0.88',
         'HTTP::Request::Common' => 0,
-        'IO::Scalar' => 0,
         'HTTP::Status' => 0,
       },
     },
index f693486..e105761 100644 (file)
@@ -52,7 +52,8 @@ sub latin1 :Local {
 sub file :Local {
     my ($self, $c) = @_;
     close *STDERR; # i am evil.
-    $c->response->body($main::TEST_FILE); # filehandle from test file
+    open my $test_file, '<', \"this is a test";
+    $c->response->body($test_file);
 }
 
 sub capture : Chained('/') CaptureArgs(1) {}
index 901ae84..f3b5f90 100644 (file)
@@ -1,7 +1,6 @@
 use strict;
 use warnings;
 use Test::More;
-use IO::Scalar;
 
 # setup library path
 use FindBin qw($Bin);
@@ -16,9 +15,6 @@ BEGIN {
 # make sure testapp works
 use_ok('TestAppUnicode') or BAIL_OUT($@);
 
-our $TEST_FILE = IO::Scalar->new(\"this is a test");
-sub IO::Scalar::FILENO { -1 }; # needed?
-
 # a live test against TestAppUnicode, the test application
 use Test::WWW::Mechanize::Catalyst 'TestAppUnicode';
 my $mech = Test::WWW::Mechanize::Catalyst->new;