Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

use catfile for portability (as Xslate does internally) #70

Merged
merged 1 commit into from Dec 4, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −1
Split
View
@@ -6,6 +6,7 @@ use warnings;
use Fatal qw(open close);
use Test::More;
use File::Temp qw(tempdir);
+use File::Spec ();
use Text::Xslate;
# problems on depend cache
@@ -53,7 +54,8 @@ T
is $tx->render("main.tx"), $content_base;
is $tx->render("main.tx"), $content_base;
- is $tx->{_load_source_count}{"$service/main.tx"} => 1;
+ my $path = File::Spec->catfile($service, "main.tx");
+ is $tx->{_load_source_count}{$path} => 1;
}