[SCM] Debian packaging of Mojolicious-Plugin-Authentication CPAN distribution branch, master, updated. debian/1.24-1-6-g33b7a2f
gregor herrmann
gregoa at debian.org
Sat Jun 22 15:29:12 UTC 2013
The following commit has been merged in the master branch:
commit cc4fc3403b6fb9543fde74e12899e85849d57d67
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Jun 22 17:25:54 2013 +0200
Add patch from upstream bugtracker to handle changes in Test::Mojo.
Closes: #713251
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bbec80c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+test-mojo.patch
diff --git a/debian/patches/test-mojo.patch b/debian/patches/test-mojo.patch
new file mode 100644
index 0000000..1855532
--- /dev/null
+++ b/debian/patches/test-mojo.patch
@@ -0,0 +1,62 @@
+Origin: https://github.com/benvanstaveren/Mojolicious-Plugin-Authentication/pull/8
+Bug: https://github.com/benvanstaveren/Mojolicious-Plugin-Authentication/issues/7
+Bug-Debian: http://bugs.debuian.org/713251
+Forwarded: not-needed
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-06-22
+
+From 48f3ce9d054fcbf2c7c7b6fbfa858f1fedab4c85 Mon Sep 17 00:00:00 2001
+From: Kartik Thakore <kthakore at aimed.cc>
+Date: Mon, 3 Jun 2013 10:49:12 -0400
+Subject: [PATCH] Fixed test case depreciated usage of post_form_ok
+
+---
+ t/01-functional.t | 6 +++---
+ t/02-functional_lazy.t | 4 ++--
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/t/01-functional.t b/t/01-functional.t
+index 7b0ae08..58b254a 100644
+--- a/t/01-functional.t
++++ b/t/01-functional.t
+@@ -82,16 +82,16 @@ $t->get_ok('/authonly')->status_is(200)->content_is('not authenticated');
+ $t->get_ok('/condition/authonly')->status_is(404);
+
+ # let's try this
+-$t->post_form_ok('/login', { u => 'fnark', p => 'fnork' })->status_is(200)->content_is('failed');
++$t->post_ok('/login' => form => { u => 'fnark', p => 'fnork' })->status_is(200)->content_is('failed');
+ $t->get_ok('/authonly')->status_is(200)->content_is('not authenticated');
+
+-$t->post_form_ok('/login', { u => 'foo', p => 'bar' })->status_is(200)->content_is('ok');
++$t->post_ok('/login' => form => { u => 'foo', p => 'bar' })->status_is(200)->content_is('ok');
+ $t->get_ok('/authonly')->status_is(200)->content_is('authenticated');
+ $t->get_ok('/condition/authonly')->status_is(200)->content_is('authenticated condition');
+
+ $t->get_ok('/logout')->status_is(200)->content_is('logout');
+ $t->get_ok('/authonly')->status_is(200)->content_is('not authenticated');
+
+-$t->post_form_ok('/login2', { u => 'foo', p => 'bar' })->status_is(200)->content_is('ok');
++$t->post_ok('/login2' => form => { u => 'foo', p => 'bar' })->status_is(200)->content_is('ok');
+ $t->get_ok('/authonly')->status_is(200)->content_is('authenticated');
+ $t->get_ok('/condition/authonly')->status_is(200)->content_is('authenticated condition');
+diff --git a/t/02-functional_lazy.t b/t/02-functional_lazy.t
+index 4d3e7da..96a2977 100644
+--- a/t/02-functional_lazy.t
++++ b/t/02-functional_lazy.t
+@@ -90,11 +90,11 @@ $t->get_ok('/authonly/lazy')->status_is(200)
+ $t->get_ok('/condition/authonly/lazy')->status_is(404);
+
+ # let's try this
+-$t->post_form_ok( '/login', { u => 'fnark', p => 'fnork' } )->status_is(200)
++$t->post_ok( '/login' => form => { u => 'fnark', p => 'fnork' } )->status_is(200)
+ ->content_is('failed');
+ $t->get_ok('/authonly')->status_is(200)->content_is('not authenticated');
+
+-$t->post_form_ok( '/login', { u => 'foo', p => 'bar' } )->status_is(200)
++$t->post_ok( '/login' => form => { u => 'foo', p => 'bar' } )->status_is(200)
+ ->content_is('ok');
+
+ # try original auth in lazy mode
+--
+1.8.1.6
+
--
Debian packaging of Mojolicious-Plugin-Authentication CPAN distribution
More information about the Pkg-perl-cvs-commits
mailing list