Fix embarrassing leak triggered on calling new_related on an uninserted object
authorPeter Rabbitson <ribasushi@cpan.org>
Tue, 14 Feb 2012 22:05:04 +0000 (23:05 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 18 Feb 2012 00:54:41 +0000 (01:54 +0100)
commit0a03206ab54cce5df165c4703bcf8a43252e46ba
treeb612e2780b4688d83b4aab8cbc33ca7683321f19
parent66441708b7337cde35fa7f618e23df0c155cd741
Fix embarrassing leak triggered on calling new_related on an uninserted object

Reason is a typo-ed hash element in a weaken() call back in 68f3b0dd. Add a
bunch of extra tests to catch this, and also better validate the new_related
behavior.
Changes
lib/DBIx/Class/Relationship/Base.pm
t/52leaks.t
t/multi_create/in_memory.t