update .gitignore for dzil byproducts
[gitmo/MooseX-ConfigFromFile.git] / t / 02subclass.t
index fec2590..1a67eaa 100644 (file)
@@ -1,12 +1,15 @@
-#!/usr/bin/env perl 
 use strict;
-use Test::More;
-use Test::Exception;
+use warnings FATAL => 'all';
+
+use Test::More tests => 3;
+use Test::Fatal;
+use Test::NoWarnings 1.04 ':early';
+
 {
     package A;
     use Moose;
     with qw(MooseX::ConfigFromFile);
-    
+
     sub get_config_from_file { }
 }
 
@@ -17,6 +20,5 @@ use Test::Exception;
 }
 
 ok(B->does('MooseX::ConfigFromFile'), 'B does ConfigFromFile');
-lives_ok { B->new_with_config() } 'B->new_with_config lives';
+is(exception { B->new_with_config() }, undef, 'B->new_with_config lives');
 
-done_testing();