Tidy whitespace
[gitmo/Moose.git] / t / 030_roles / 016_runtime_roles_and_nonmoose.t
index ecf1af0..906da55 100644 (file)
@@ -3,13 +3,11 @@
 use strict;
 use warnings;
 
-use Test::More tests => 7;
-use Test::Exception;
+use Test::More;
+use Test::Fatal;
 use Scalar::Util 'blessed';
 
 
-
-
 {
     package Dog;
     use Moose::Role;
@@ -34,16 +32,16 @@ use Scalar::Util 'blessed';
 }
 
 my $bar = Bar->new;
-isa_ok($bar, 'Bar');    
+isa_ok($bar, 'Bar');
 
 my $foo = Foo->new;
-isa_ok($foo, 'Foo');  
+isa_ok($foo, 'Foo');
 
 ok(!$bar->can( 'talk' ), "... the role is not composed yet");
 
-dies_ok {
+ok exception {
     $foo->dog($bar)
-} '... and setting the accessor fails (not a Dog yet)';
+}, '... and setting the accessor fails (not a Dog yet)';
 
 Dog->meta->apply($bar);
 
@@ -51,7 +49,8 @@ ok($bar->can('talk'), "... the role is now composed at the object level");
 
 is($bar->talk, 'woof', '... got the right return value for the newly composed method');
 
-lives_ok {
+ok ! exception {
     $foo->dog($bar)
-} '... and setting the accessor is okay';
+}, '... and setting the accessor is okay';
 
+done_testing;