diff --git a/t/basic.t b/t/basic.t index 9bfdbd2..51fde0c 100644 --- a/t/basic.t +++ b/t/basic.t @@ -13,6 +13,11 @@ use Test::More; isa => 'Num', is => 'rw' ); + + package My::Class::Position; + use Moose; + extends 'My::Class'; + has '+x' => (history_getter => 'position_history'); } { @@ -36,13 +41,6 @@ use Test::More; is_deeply( $obj->x_history, [ 2, 3 ], "Initial value also exists in history" ); } -{ - package My::Class::Position; - use Moose; - extends 'My::Class'; - has '+x' => (history_getter => 'position_history'); -} - { my $obj = My::Class::Position->new; isa_ok($obj, 'My::Class');