version bump
[gitmo/Moose.git] / t / metaclasses / new_object_BUILD.t
CommitLineData
a19ae3d7 1#!/usr/bin/env perl
2use strict;
3use warnings;
4use Test::More;
5
6my $called;
7{
8 package Foo;
9 use Moose;
10
11 sub BUILD { $called++ }
12}
13
14Foo->new;
15is($called, 1, "BUILD called from ->new");
16$called = 0;
17Foo->meta->new_object;
18is($called, 1, "BUILD called from ->meta->new_object");
19
20done_testing;