projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Handle Foo->new(undef) consistently, with an error saying a single param to new(...
[gitmo/Moose.git]
/
t
/
100_bugs
/
011_DEMOLISH_eats_exceptions.t
diff --git
a/t/100_bugs/011_DEMOLISH_eats_exceptions.t
b/t/100_bugs/011_DEMOLISH_eats_exceptions.t
index
f785283
..
5813892
100644
(file)
--- a/
t/100_bugs/011_DEMOLISH_eats_exceptions.t
+++ b/
t/100_bugs/011_DEMOLISH_eats_exceptions.t
@@
-116,7
+116,7
@@
sub check_em {
}
{
local $@;
- my $obj = eval { $pkg->new ( undef ); };
+ my $obj = eval { $pkg->new ( notanattr => 1 ); };
::like( $@, qr/is required/, "... $pkg undef" );
::is( $obj, undef, "... the object is undef" );
}