RequireSSL 0.05, skipped tests will now run if Catalyst >= 5.5
[catagits/Catalyst-Plugin-RequireSSL.git] / t / 06remain_in_ssl.t
index 956385a..948d97a 100644 (file)
@@ -22,9 +22,9 @@ isnt( $res->content, 'Secured', 'no content displayed on secure page, ok' );
 # test redirect back to HTTP, should not redirect
 SKIP:
 {
-    skip "These tests require a patch to Catalyst", 2;
-    # patch is to Catalyst::Engine::HTTP::Base in 5.3x
-    #             Catalyst::Engine::Test in 5.5
+    if ( Catalyst->VERSION < 5.5 ) {
+        skip "These tests require Catalyst >= 5.5", 2;
+    }
     ok( $res = request('https://localhost/ssl/unsecured'), 'request ok' );
     is( $res->code, 200, 'remain in SSL ok' );
 }