{
- {
- package Foo;
- use Moose;
-
- ::like( ::exception { has 'foo' => ( 'ro', isa => 'Str' ) }, qr/^Usage/, 'has throws error with odd number of attribute options' );
- }
+ package Foo;
+ use Moose;
+ ::like(
+ ::exception{ has 'foo' => ( 'ro', isa => 'Str' ) },
+ qr/^Defining an attribute/,
+ 'has throws error with odd number of attribute options'
+ );
}
done_testing;