Commit | Line | Data |
---|---|---|
cecd110f | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
7ff56534 | 6 | use Test::More tests => 1; |
cecd110f | 7 | use Test::Exception; |
8 | ||
7ff56534 | 9 | |
cecd110f | 10 | |
11 | =pod | |
12 | ||
d03bd989 | 13 | This was a bug, but it is fixed now. This |
cecd110f | 14 | test makes sure it does not creep back in. |
15 | ||
16 | =cut | |
17 | ||
18 | { | |
19 | package Foo; | |
20 | use Moose; | |
d03bd989 | 21 | |
cecd110f | 22 | ::lives_ok { |
23 | has 'bar' => ( | |
d03bd989 | 24 | is => 'ro', |
cecd110f | 25 | isa => 'Int', |
26 | lazy => 1, | |
27 | default => 10, | |
28 | ); | |
29 | } '... this didnt die'; | |
30 | } | |
d03bd989 | 31 |