throws_ok {
$moose_obj->a_str( $moose_obj )
- } qr/Attribute \(a_str\) does not pass the type constraint because\: Validation failed for 'Str' failed with value OverloadedStr=HASH\(0x.+?\)/,
+ } qr/Attribute \(a_str\) does not pass the type constraint because\: Validation failed for 'Str' failed with value OverloadedStr=HASH\(0x.+?\)/,
'... dies without overloading the string';
}
throws_ok {
OverloadBreaker->new;
- } qr/Attribute \(a_num\) does not pass the type constraint because\: Validation failed for 'Int' failed with value 7\.5/,
+ } qr/Attribute \(a_num\) does not pass the type constraint because\: Validation failed for 'Int' failed with value 7\.5/,
'... this doesnt trip overload to break anymore ';
lives_ok {
is($instance->foo, 'works', "foo builder works");
}
-{
+{
{
package Test::Builder::Attribute::Broken;
use Moose;
has 'foo' => ( required => 1, builder => 'build_foo', is => 'ro');
}
-
+
dies_ok {
Test::Builder::Attribute::Broken->new;
} '... no builder, wtf';