took out *Existing* and added SEE ALSO instead
Todd Hepler [Tue, 27 Mar 2012 20:39:30 +0000 (15:39 -0500)]
dist.ini
t/04.existing.t [deleted file]

index f7a3e5e..01f9084 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -19,7 +19,6 @@ Path::Class = 0.16
 
 [Prereqs / TestRequires]
 Test::More = 0.88
-Test::Fatal = 0
 
 [PodSyntaxTests]
 [PodCoverageTests]
diff --git a/t/04.existing.t b/t/04.existing.t
deleted file mode 100644 (file)
index 0095413..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-
-{
-
-    package Bar;
-    use Moose;
-    use MooseX::Types::Path::Class qw( ExistingDir ExistingFile );
-
-    has 'dir' => (
-        is       => 'ro',
-        isa      => ExistingDir,
-        coerce   => 1,
-    );
-
-    has 'file' => (
-        is       => 'ro',
-        isa      => ExistingFile,
-        coerce   => 1,
-    );
-}
-
-package main;
-
-use strict;
-use warnings;
-use Test::More;
-use Test::Fatal;
-
-my $no_exist = '/should/not/exist';
-
-plan skip_all => "Preconditions failed; your filesystem is strange"
-    unless -d "/etc" && -e "/etc/passwd";
-
-plan skip_all => "Preconditions failed"
-    if -e $no_exist;
-
-use MooseX::Types::Path::Class qw(ExistingFile ExistingDir);
-
-ok is_ExistingFile(to_ExistingFile("/etc/passwd")), '/etc/passwd is an existing file';
-
-ok is_ExistingDir(to_ExistingDir("/etc/")), '/etc/ is an existing directory';
-
-like(
-    exception { Bar->new(dir  => $no_exist); },
-    qr/Directory .* must exist/,
-    'no exist dir throws',
-);
-like(
-    exception { Bar->new(file => "$no_exist/either"); },
-    qr/File .* must exist/,
-    'no exist file throws',
-);
-
-done_testing;
-