6 BEGIN { plan skip_all => 'This test fails with a syntax error' }
15 use MooseX::ClassAttribute ();
17 Moose::Exporter->setup_import_methods(
18 also => ['MooseX::ClassAttribute'],
27 # use MooseX::Foo; # normal use
30 # Now theoretically, this should work -- the 'class_has' method
31 # should have been imported via the MooseX package above.
33 is => 'ro', isa => 'Str',
38 my $obj = MyClass->new();
40 is( $obj->attr(), 'foo', 'class attribute is properly created' );