use strict;
use warnings;
-use Test::More tests => 2;
+use Test::More;
use Test::Exception;
-BEGIN {
- use_ok('Moose');
-}
=pod
-This was a bug, but it is fixed now. This
+This was a bug, but it is fixed now. This
test makes sure it does not creep back in.
=cut
{
package Foo;
use Moose;
-
+
::lives_ok {
has 'bar' => (
- is => 'ro',
+ is => 'ro',
isa => 'Int',
lazy => 1,
default => 10,
);
} '... this didnt die';
}
-
+
+done_testing;