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=13c6b4cc50b9235536022e4deb470c151d9b7fac;hpb=4fbc0e853c0b29d1f6082909b0cb54595ea32787 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 {}