X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fcaf_backcompat.t;h=d8c67c246ad8da779277675c27dc3225b3bd2984;hp=975eda2dd65bd917e19b9e187e2325e196c1c076;hb=3932d8818a3c5112315a8757b6db7a3678755f7e;hpb=241edc9b196ed1d8366b0011c814b0c2d9357516 diff --git a/t/caf_backcompat.t b/t/caf_backcompat.t index 975eda2..d8c67c2 100644 --- a/t/caf_backcompat.t +++ b/t/caf_backcompat.t @@ -1,9 +1,29 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More; use Test::Exception; -use Catalyst::Action; +use Class::MOP (); +use Moose::Util (); -my $action=Catalyst::Action->new({foo=>'bar'}); +# List of everything which used Class::Accessor::Fast in 5.70. +my @modules = qw/ + Catalyst::Action + Catalyst::ActionContainer + Catalyst::Component + Catalyst::Dispatcher + Catalyst::DispatchType + Catalyst::Engine::HTTP::Restarter::Watcher + Catalyst::Engine + Catalyst::Log + Catalyst::Request::Upload + Catalyst::Request + Catalyst::Response +/; -is $action->{foo}, 'bar', 'custom Action attribute'; +plan tests => scalar @modules; + +foreach my $module (@modules) { + Class::MOP::load_class($module); + ok Moose::Util::does_role($module => 'MooseX::Emulate::Class::Accessor::Fast'), + "$module has Class::Accessor::Fast back-compat"; +}