X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F050_metaclasses%2F017_use_base_of_moose.t;fp=t%2F050_metaclasses%2F017_use_base_of_moose.t;h=b8962bd4e677b714573ad53b0942d21d773d75f8;hb=9864f0e4ba233c5f30ad6dc7c484ced43d883d27;hp=607a0679567a55178f6116f7092656043de1969f;hpb=8845df4dd6432e3164d078ade741409061adae9f;p=gitmo%2FMouse.git diff --git a/t/050_metaclasses/017_use_base_of_moose.t b/t/050_metaclasses/017_use_base_of_moose.t index 607a067..b8962bd 100644 --- a/t/050_metaclasses/017_use_base_of_moose.t +++ b/t/050_metaclasses/017_use_base_of_moose.t @@ -1,22 +1,21 @@ #!/usr/bin/env perl -# This is automatically generated by author/import-moose-test.pl. -# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! -use t::lib::MooseCompat; use strict; use warnings; -use Test::More; +use Test::More tests => 4; use Test::Exception; { package NoOpTrait; use Mouse::Role; + + } { package Parent; - use Mouse -traits => 'NoOpTrait'; + use Mouse "-traits" => 'NoOpTrait'; has attr => ( is => 'rw', @@ -28,15 +27,12 @@ use Test::Exception; package Child; use base 'Parent'; } - is(Child->meta->name, 'Child', "correct metaclass name"); - my $child = Child->new(attr => "ibute"); ok($child, "constructor works"); + is($child->attr, "ibute", "getter inherited properly"); $child->attr("ition"); is($child->attr, "ition", "setter inherited properly"); - -done_testing;