work with Inlined changes in CMOP
[gitmo/Moose.git] / t / 300_immutable / 015_immutable_destroy.t
index 32b6fe4..82a5df1 100644 (file)
@@ -1,19 +1,18 @@
-#!/usr/bin/perl
 use strict;
 use warnings;
 use Test::More tests => 1;
 
-BEGIN {
+{
     package FooBar;
     use Moose;
 
-    has 'name' => (is => 'ro');
+    has 'name' => ( is => 'ro' );
 
     sub DESTROY { shift->name }
 
     __PACKAGE__->meta->make_immutable;
 }
 
-my $f = FooBar->new(name => "SUSAN");
+my $f = FooBar->new( name => 'SUSAN' );
 
-is($f->DESTROY, "SUSAN", "Did moose overload DESTROY?");
+is( $f->DESTROY, 'SUSAN', 'Did moose overload DESTROY?' );