RequireSSL 0.05, skipped tests will now run if Catalyst >= 5.5
[catagits/Catalyst-Plugin-RequireSSL.git] / t / 05ssl_host.t
index 56235f9..c826593 100644 (file)
@@ -23,9 +23,9 @@ isnt( $res->content, 'Secured', 'no content displayed on secure page, ok' );
 # test redirect back to HTTP
 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://secure.mydomain.com/ssl/unsecured'), 'request ok' );
     is( $res->header('location'), 'http://www.mydomain.com/ssl/unsecured', 'other domain redirect uri ok' );
 }