X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fclassmethod.t;fp=t%2Fclassmethod.t;h=19868b5776ad1c673c516c667966b1ae330894c4;hb=4c3759681305fb889c41ee1c6558ee0b24fc4253;hp=0000000000000000000000000000000000000000;hpb=5b94dce5a79a169474bc581ec122a2ff5e2eb3ef;p=p5sagit%2Flocal-lib.git diff --git a/t/classmethod.t b/t/classmethod.t new file mode 100644 index 0000000..19868b5 --- /dev/null +++ b/t/classmethod.t @@ -0,0 +1,35 @@ + +use strict; +use warnings; +use Test::More 'no_plan'; +use local::lib (); + + +my $c = 'local::lib'; + + +{ + +is($c->resolve_empty_path, '~/perl5'); +is($c->resolve_empty_path('foo'), 'foo'); + +} + +{ + +local *File::Spec::rel2abs = sub { shift; 'FOO'.shift; }; +is($c->resolve_relative_path('bar'),'FOObar'); + +} + +{ + +File::Path::rmtree('t/var/splat'); + +$c->ensure_dir_structure_for('t/var/splat'); + +ok(-d 't/var/splat'); + +ok(-f 't/var/splat/.modulebuildrc'); + +}