Support modifier by regexp
[gitmo/Mouse.git] / t / 300_immutable / 007_immutable_trigger_from_constructor.t
index cab557f..0ddcc5f 100644 (file)
@@ -3,15 +3,15 @@
 use strict;
 use warnings;
 
-use Test::More tests => 3;
+use Test::More;
 use Test::Exception;
 
-
+plan tests => 3;
 
 {
     package AClass;
 
-    use Moose;
+    use Mouse;
 
     has 'foo' => (is => 'rw', isa => 'Maybe[Str]', trigger => sub {
         die "Pulling the Foo trigger\n"
@@ -25,7 +25,7 @@ use Test::Exception;
 
     __PACKAGE__->meta->make_immutable; #(debug => 1);
 
-    no Moose;
+    no Mouse;
 }
 
 eval { AClass->new(foo => 'bar') };