[libdancer-plugin-rest-perl] 54/63: FIX test t/03_resource.t (skip if not Dancer 1.3059_01)

Jonas Smedegaard dr at jones.dk
Wed Jul 2 11:44:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag 0.07
in repository libdancer-plugin-rest-perl.

commit 0eb81d32072f8fce9fb60dedd501eb538c29b42f
Author: Alexis Sukrieh <sukria at sukria.net>
Date:   Sat May 28 14:55:46 2011 +0200

    FIX test t/03_resource.t (skip if not Dancer 1.3059_01)
---
 t/03_resource.t | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/t/03_resource.t b/t/03_resource.t
index 3b59dd0..8812ae9 100644
--- a/t/03_resource.t
+++ b/t/03_resource.t
@@ -3,6 +3,13 @@ use warnings;
 use Dancer::ModuleLoader;
 use Test::More import => ['!pass'];
 
+# Dancer::Test had a bug in version previous 1.3059_01 that prevent this test
+# from running correctly.
+my $dancer_version = eval "\$Dancer::VERSION";
+$dancer_version =~ s/_//g;
+plan skip_all => "Dancer 1.3059_01 is needed for this test (you have $dancer_version)"
+  if $dancer_version < 1.305901;
+
 plan tests => 8;
 
 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-rest-perl.git



More information about the Pkg-perl-cvs-commits mailing list