Revert autogenerated tests. Tests should not changed radically.
[gitmo/Mouse.git] / t / 300_immutable / 007_immutable_trigger_from_constructor.t
index 6e5cdb1..0ddcc5f 100644 (file)
@@ -1,7 +1,4 @@
 #!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
 
 use strict;
 use warnings;
@@ -9,6 +6,7 @@ use warnings;
 use Test::More;
 use Test::Exception;
 
+plan tests => 3;
 
 {
     package AClass;
@@ -18,12 +16,12 @@ use Test::Exception;
     has 'foo' => (is => 'rw', isa => 'Maybe[Str]', trigger => sub {
         die "Pulling the Foo trigger\n"
     });
-
-    has 'bar' => (is => 'rw', isa => 'Maybe[Str]');
-
+    
+    has 'bar' => (is => 'rw', isa => 'Maybe[Str]');    
+    
     has 'baz' => (is => 'rw', isa => 'Maybe[Str]', trigger => sub {
         die "Pulling the Baz trigger\n"
-    });
+    });    
 
     __PACKAGE__->meta->make_immutable; #(debug => 1);
 
@@ -38,4 +36,5 @@ like ($@, qr/^Pulling the Baz trigger/, "trigger from immutable constructor");
 
 lives_ok { AClass->new(bar => 'bar') } '... no triggers called';
 
-done_testing;
+
+