Standardize use of Test::Exception before converting to Test::Fatal
[gitmo/Moose.git] / t / 100_bugs / 005_inline_reader_bug.t
CommitLineData
cecd110f 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
53a4d826 7use Test::Exception;
cecd110f 8
7ff56534 9
cecd110f 10=pod
11
d03bd989 12This was a bug, but it is fixed now. This
cecd110f 13test makes sure it does not creep back in.
14
15=cut
16
17{
18 package Foo;
19 use Moose;
d03bd989 20
53a4d826 21 ::lives_ok {
cecd110f 22 has 'bar' => (
d03bd989 23 is => 'ro',
cecd110f 24 isa => 'Int',
25 lazy => 1,
26 default => 10,
27 );
53a4d826 28 } '... this didnt die';
cecd110f 29}
d03bd989 30
a28e50e4 31done_testing;