Redid conversion 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;
b10dde3a 7use Test::Fatal;
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
b10dde3a 21 ::is( ::exception {
cecd110f 22 has 'bar' => (
d03bd989 23 is => 'ro',
cecd110f 24 isa => 'Int',
25 lazy => 1,
26 default => 10,
27 );
b10dde3a 28 }, undef, '... this didnt die' );
cecd110f 29}
d03bd989 30
a28e50e4 31done_testing;