meta_ok
does_ok
has_attribute_ok
+ with_immutable
)],
);
}
}
+sub with_immutable (&@) {
+ my $block = shift;
+
+ my $before = $Test->current_test;
+
+ $block->();
+ $_->meta->make_immutable for @_;
+ $block->();
+
+ my $num_tests = $Test->current_test - $before;
+
+ return !grep{ !$_ } ($Test->summary)[-$num_tests .. -1];
+}
+
1;
__END__