X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F016-trait.t;h=575b43108a688acf8a1f3187a8f6d348bb859006;hb=d25e4ce2800a3a3ce2c72659fb9fec32e712da84;hp=f7b68ea55f7f77875c905d6455da67b79af80e82;hpb=34a27044c774297c368154f3f318798cd9fb6728;p=gitmo%2FMooseX-Role-Parameterized.git diff --git a/t/016-trait.t b/t/016-trait.t index f7b68ea..575b431 100644 --- a/t/016-trait.t +++ b/t/016-trait.t @@ -1,8 +1,7 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More skip_all => "Moose doesn't yet support traits with parameters"; -#use Test::More tests => 2; +use Test::More tests => 2; do { package MyTrait::Label; @@ -32,17 +31,17 @@ do { traits => [ 'MyTrait::Label' => { default => 'yay' }, ], - is => 'rw', - isa => 'Str', ); }; do { package MyClass::LabeledURL::Redux; use Moose; - extends 'MyClass::LabeledURL'; - has '+url' => ( + has 'url' => ( + traits => [ + 'MyTrait::Label' => { default => 'yay' }, + ], label => 'overridden', ); };