1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
From: intrigeri <intrigeri@boum.org>
Date: Sat, 25 Jun 2016 17:39:18 +0000
Forwarded: https://github.com/jquelin/Dist-Zilla-Plugin-LocaleMsgfmt/pull/1
Subject: t/msgfmt.t: convert to Path::Tiny API,
for compatibility with Dist::Zilla v7.
---
t/msgfmt.t | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/t/msgfmt.t b/t/msgfmt.t
index 76a4e0a..0291fa9 100644
--- a/t/msgfmt.t
+++ b/t/msgfmt.t
@@ -17,14 +17,14 @@ my $tzil = Dist::Zilla::Tester->from_config({
warning_like { $tzil->build } qr/^Skipping invalid path:/, "invalid path gives warning";
-my $share = $tzil->root->subdir( "share" );
-file_exists_ok( $share->file( "locale1", "basic.mo" ), "1st dir" );
-file_exists_ok( $share->file( "locale2", "basic.mo" ), "2nd dir" );
+my $share = $tzil->root->child( "share" );
+file_exists_ok( $share->child( "locale1", "basic.mo" ), "1st dir" );
+file_exists_ok( $share->child( "locale2", "basic.mo" ), "2nd dir" );
# recursive
-file_exists_ok( $share->file( "locale1", "a", "a", "basic.mo" ), "recurse" );
-file_exists_ok( $share->file( "locale1", "a", "b", "basic.mo" ), "recurse" );
-file_exists_ok( $share->file( "locale1", "b", "a", "basic.mo" ), "recurse" );
-file_exists_ok( $share->file( "locale1", "b", "b", "basic.mo" ), "recurse" );
-file_exists_ok( $share->file( "locale1", "b", "basic.mo" ), "recurse" );
+file_exists_ok( $share->child( "locale1", "a", "a", "basic.mo" ), "recurse" );
+file_exists_ok( $share->child( "locale1", "a", "b", "basic.mo" ), "recurse" );
+file_exists_ok( $share->child( "locale1", "b", "a", "basic.mo" ), "recurse" );
+file_exists_ok( $share->child( "locale1", "b", "b", "basic.mo" ), "recurse" );
+file_exists_ok( $share->child( "locale1", "b", "basic.mo" ), "recurse" );
|