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' ],
26 # use MooseX::Foo; # normal use
29 # Now theoretically, this should work -- the 'class_has' method
30 # should have been imported via the MooseX package above.
32 is => 'ro', isa => 'Str',
37 my $obj = MyClass->new();
39 is( $obj->attr(), 'foo', 'class attribute is properly created' );