Skip Menu |

This queue is for tickets about the MooseX-Templated CPAN distribution.

Report information
The Basics
Id: 41168
Status: resolved
Priority: 0/
Queue: MooseX-Templated

People
Owner: Nobody in particular
Requestors: taro.nishino [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: (no value)



Subject: 01.api.t and 03.view.t
Dear Ian, As you can see from my cpan-testers report #2650561, 01.api.t and 03.view.t resulted in failure because of MS Windows paths. Could you adopt the way to keep cross-platform as follows? --- 01.api.t.orig Mon Nov 24 12:17:31 2008 +++ 01.api.t Mon Nov 24 12:19:44 2008 @@ -3,6 +3,7 @@ use strict; use warnings; use FindBin; +use File::Spec; use lib $FindBin::Bin . '/lib'; @@ -32,5 +33,5 @@ is( $cow->template_src_ext, '.tt', 'template source ext' ); -is( $cow->template_src_base, $FindBin::Bin . '/lib', 'template source base' ); +is( $cow->template_src_base, File::Spec->catdir($FindBin::Bin . '/lib'), 'template source base' ); --- 03.view.t.orig Mon Nov 24 12:20:37 2008 +++ 03.view.t Mon Nov 24 12:30:51 2008 @@ -4,6 +4,7 @@ use warnings; use FindBin; use File::Slurp; +use File::Spec; use lib $FindBin::Bin . '/lib'; use Farm::Cow; @@ -33,7 +34,7 @@ my $alt_ext = '.tt2'; my $alt_path = $FindBin::Bin . '/tt2_src'; -my $alt_file = $alt_path . "/Farm/Cow.tt2"; +my $alt_file = File::Spec->catfile($alt_path, "Farm/Cow.tt2"); my $alt_src = read_file( $alt_file ); is( $view->build_src_path( base => $alt_path, ext => $alt_ext), Best regards, Taro Nishino
My bad - thanks for pointing this out. Tests have been ammended in version 0.02 which has just been pushed to CPAN. Cheers, Ian