# this method (mostly stolen from M::M::Attribute) just rebuilds the
# options so anything with 'is' gets PBP accessors
- sub _process_options {
+ before '_process_options' => sub {
my ($class, $name, $options) = @_;
if (exists $options->{is}) {
if ($options->{is} eq 'ro') {
can_ok($foo, 'set_bar');
can_ok($foo, 'get_baz');
+ok(! $foo->can('set_baz'), 'without setter');
is($foo->get_bar, 'Foo::bar', '... got the right default value');
is($foo->get_baz, 'Foo::baz', '... got the right default value');