foo_called(2 => 'trigger called for setter');
}
-my %orig_src = map +($_ => join '', Dump(One->can($_))), qw(new DESTROY one);
+my %orig_src = map +($_ => join '', Dump(One->can($_))), qw(new DESTROY foo);
my $orig_foo_meta = Dump(One->meta);
Class::Unload->unload('One');
Class::MOP::remove_metaclass_by_name('One');
-eval $compiled; die "Shit. failed.\n\n${compiled}\n\nError: $@" if $@;
+eval "no warnings; $compiled";
+
+die "Shit. failed.\n\n${compiled}\n\nError: $@" if $@;
use Data::Dumper::Concise;
-my %compiled_src = map +($_ => join '', Dump(One->can($_))), qw(new DESTROY one);
+my %compiled_src = map +($_ => join '', Dump(One->can($_))), qw(new DESTROY foo);
-#foreach my $method (qw(new DESTROY one)) {
-# is($compiled_src{$method}, $orig_src{$method}, "${method} restored ok");
-#}
+foreach my $method (qw(new DESTROY foo)) {
+ is($compiled_src{$method}, $orig_src{$method}, "${method} restored ok");
+}
test_One;