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

kanashiro-guest pushed a commit to branch master
in repository carton.

commit 7453ffac83e4ad5f85f7aaca129925d515c31667
Author: Kan Fushihara <kan.fushih...@gmail.com>
Date:   Fri Aug 30 12:16:48 2013 +0900

    add unit test for support CRLF in cpanfile.snapshot
---
 xt/cli/snapshot.t | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/xt/cli/snapshot.t b/xt/cli/snapshot.t
index 2b0254d..b036af7 100644
--- a/xt/cli/snapshot.t
+++ b/xt/cli/snapshot.t
@@ -44,5 +44,22 @@ EOF
     like $app->stderr, qr/Could not parse/;
 };
 
+subtest 'snapshot file support separate CRLF' => sub {
+    my $app = cli();
+    $app->write_cpanfile(<<EOF);
+requires 'Try::Tiny', '== 0.11';
+requires 'Getopt::Long', '2.41';
+EOF
+
+    $app->run("install");
+
+    my $content = $app->dir->child('cpanfile.snapshot')->slurp;
+    $content =~ s/\n/\r\n/g;
+    $app->write_file('cpanfile.snapshot', $content);
+
+    $app->run("install");
+    ok !$app->stderr;
+};
+
 done_testing;
 

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to