X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fdead_load_multiple_chained_attributes.t;h=b870a751ac051abb5dbe8aa0e3a7324873e49f28;hp=7d1ad3441a16ee54e232067089becbcb53b41e57;hb=9bdde4de9bedb3f4ebd9f90d2e79b27a00689038;hpb=57d7305c41daa31f2e899a8602dfa914bdde2cc3 diff --git a/t/dead_load_multiple_chained_attributes.t b/t/dead_load_multiple_chained_attributes.t index 7d1ad34..b870a75 100644 --- a/t/dead_load_multiple_chained_attributes.t +++ b/t/dead_load_multiple_chained_attributes.t @@ -10,16 +10,16 @@ plan tests => 4; use Catalyst::Test 'TestApp'; -eval q{ +eval q{ package TestApp::Controller::Action::Chained; sub should_fail : Chained('/') Chained('foo') Args(0) {} }; ok(!$@); -eval { TestApp->setup_actions; }; +eval { TestApp->setup_actions; }; ok($@, 'Multiple chained attributes make action setup fail'); -eval q{ +eval q{ package TestApp::Controller::Action::Chained; no warnings 'redefine'; sub should_fail {}