[libcookie-baker-perl] 03/03: use Test::MockTime instead of Test::Time

Florian Schlichting fsfs at alioth.debian.org
Wed Oct 30 21:49:38 UTC 2013


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

fsfs pushed a commit to branch master
in repository libcookie-baker-perl.

commit 9ac62f610151a1176c15e1483cadca4690975a08
Author: Florian Schlichting <fsfs at debian.org>
Date:   Wed Oct 30 22:47:09 2013 +0100

    use Test::MockTime instead of Test::Time
---
 debian/changelog                       |    4 ++--
 debian/control                         |    2 +-
 debian/patches/series                  |    1 +
 debian/patches/use_test-mocktime.patch |   16 ++++++++++++++++
 4 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2df3fd2..594b1fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-libcookie-baker-perl (0.02-1) UNRELEASED; urgency=low
+libcookie-baker-perl (0.02-1) unstable; urgency=low
 
   * Initial Release. (Closes: #728337)
 
- -- Florian Schlichting <fsfs at debian.org>  Wed, 30 Oct 2013 22:20:49 +0100
+ -- Florian Schlichting <fsfs at debian.org>  Wed, 30 Oct 2013 22:46:40 +0100
diff --git a/debian/control b/debian/control
index 4d74f09..ee3cf04 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders: Florian Schlichting <fsfs at debian.org>
 Build-Depends: debhelper (>= 8),
  perl (>= 5.13.11) | libmodule-build-perl (>= 0.380000),
  perl
-Build-Depends-Indep: libtest-time-perl,
+Build-Depends-Indep: libtest-mocktime-perl,
  liburi-perl,
  perl (>= 5.13.11) | libtest-more-perl (>= 0.98)
 Standards-Version: 3.9.5
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2272c68
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_test-mocktime.patch
diff --git a/debian/patches/use_test-mocktime.patch b/debian/patches/use_test-mocktime.patch
new file mode 100644
index 0000000..e161245
--- /dev/null
+++ b/debian/patches/use_test-mocktime.patch
@@ -0,0 +1,16 @@
+Description: Use Test::MockTime instead of Test::Time
+ It is very similar, has more features, and is already in the archive
+Author: Florian Schlichting <fsfs at debian.org>
+Forwarded: not-needed
+
+--- a/t/01_bake.t
++++ b/t/01_bake.t
+@@ -1,6 +1,7 @@
+ use strict;
+ use Test::More;
+-use Test::Time time => 1381154217;
++use Test::MockTime;
++Test::MockTime::set_absolute_time(1381154217);
+ use Cookie::Baker;
+ 
+ # Freeze time

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcookie-baker-perl.git



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