'immutable_options is empty before a class is made_immutable'
);
- is( $meta->make_immutable, $meta, 'make_immutable returns $self' );
+ ok( $meta->make_immutable, 'make_immutable returns true' );
my $line = __LINE__ - 1;
- is( $meta->make_immutable, $meta, 'make_immutable returns $self again' );
+ ok( $meta->make_immutable, 'make_immutable still returns true' );
my $immutable_metaclass = $meta->_immutable_metaclass->meta;
$meta->make_immutable();
}, undef, '... changed Bar to be immutable' );
- is( $meta->make_immutable, $meta, '... make immutable returns $meta' );
+ ok( $meta->make_immutable, '... make immutable returns true' );
ok( !$meta->is_mutable, '... our class is no longer mutable' );
ok( $meta->is_immutable, '... our class is now immutable' );
$meta->make_immutable();
}, undef, '... changed Baz to be immutable' );
- is( $meta->make_immutable, $meta, '... make immutable returns $meta' );
+ ok( $meta->make_immutable, '... make immutable returns true' );
ok( !$meta->is_mutable, '... our class is no longer mutable' );
ok( $meta->is_immutable, '... our class is now immutable' );
is( exception {$meta->make_immutable; }, undef, '... changed Baz to be immutable' );
ok(!$meta->is_mutable, '... our class is no longer mutable');
ok($meta->is_immutable, '... our class is now immutable');
- is($meta->make_immutable, $meta, '... make immutable returns $meta');
+ ok($meta->make_immutable, '... make immutable returns true');
ok($meta->get_method('new'), '... inlined constructor created');
ok($meta->has_method('new'), '... inlined constructor created for sure');
is_deeply([ map { $_->name } $meta->_inlined_methods ], [ 'new' ], '... really, i mean it');
}, undef, '... changed class to be immutable' );
ok(!$meta->is_mutable, '... our class is no longer mutable');
ok($meta->is_immutable, '... our class is now immutable');
- is($meta->make_immutable, $meta, '... make immutable returns $meta');
+ ok($meta->make_immutable, '... make immutable returns true');
is( exception { $meta->make_mutable }, undef, '... changed Baz to be mutable' );
ok($meta->is_mutable, '... our class is mutable');