4 use Test::More tests => 3;
14 my ($self, $value, $attr) = @_;
15 $trigger{$attr->name}++;
20 can_ok(Class => qw/a b c/);
21 is(keys %{ Class->meta->get_attribute_map }, 3, "three attributes created");
22 Class->new(a => 1, b => 2);
24 is_deeply(\%trigger, { a => 1, b => 1 }, "correct triggers called");