18 my $os = $non_unix{$^O} ? $^O : 'Unix';
21 plan skip_all => 'tests require Unix';
27 my $context = Test::MockObject->new;
31 $context->mock( 'config', sub { { home => '/home/sri/my-app/' } } );
33 is( Catalyst::path_to( $context, 'foo' ), '/home/sri/my-app/foo', 'Unix path' );
35 $context->mock( 'config', sub { { home => '/Users/sri/myapp' } } );
37 is( Catalyst::path_to( $context, 'foo', 'bar' ),
38 '/Users/sri/myapp/foo/bar', 'deep Unix path' );