in reply to Re^2: Object not created as well with Moose
in thread Object not created as well with Moose
If you wrap your Moose class definitions in a BEGIN {} block it should work correctly. This is needed because the Moose "keywords" are just plain perl functions and so in the example you show above, they will not have run prior to your test code running.
Also, _init has no meaning to Moose, you must be looking for BUILD.
|
|---|