fix Makefile.PL when no . in @INC
[catagits/Catalyst-Plugin-Session.git] / t / live_verify_address.t
index 43c52c9..e18ca91 100644 (file)
@@ -16,6 +16,9 @@ BEGIN {
     or plan skip_all =>
         'Test::WWW::Mechanize::PSGI is required for this test';
 
+    eval { require Catalyst::Plugin::Authentication; 1 }
+      or plan skip_all => "Catalyst::Plugin::Authentication is required for this test";
+
     plan tests => 12;
 }
 
@@ -38,13 +41,8 @@ $ua->content_contains('session variable set');
 
 
 # Change Client
-#local $ENV{REMOTE_ADDR} = "192.168.1.2";
 use Plack::Builder;
 my $app = SessionTestApp->psgi_app(@_);
-builder {
-  enable 'ForceEnv' => REMOTE_ADDR => "192.168.1.2";
-  $app;
-};
 my $ua2 = Test::WWW::Mechanize::PSGI->new(
     app => $app,
     cookie_jar => {}