From: Tomas Doran Date: Tue, 28 Apr 2009 20:58:15 +0000 (+0000) Subject: Fix RT#43375 X-Git-Tag: 5.80003~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=deca8181128ea8cfd9479b7205f1b4dd361a0b4d Fix RT#43375 --- diff --git a/Changes b/Changes index da30dea..588730c 100644 --- a/Changes +++ b/Changes @@ -18,6 +18,7 @@ incompatibility issues in some cases. (t0m) - Additional tests for setup_stats method. (t0m) - Fix log levels in Catalyst::Log to be properly additive. (t0m) + - Fix RT#43375 by sorting results before testing them (t0m) 5.80002 2009-04-22 01:28:36 - Fix CATALYST_DEBUG and MYAPP_DEBUG environment variables diff --git a/t/unit_core_component.t b/t/unit_core_component.t index 368f163..53d6567 100644 --- a/t/unit_core_component.t +++ b/t/unit_core_component.t @@ -59,8 +59,9 @@ is_deeply([ MyApp->comp('Foo') ], \@complist, 'Fallthrough return ok'); # multiple returns { - my @expected = qw( MyApp::C::Controller MyApp::M::Model ); - is_deeply( [ MyApp->comp( qr{::[MC]::} ) ], \@expected, 'multiple results fro regexp ok' ); + my @expected = sort qw( MyApp::C::Controller MyApp::M::Model ); + my @got = sort MyApp->comp( qr{::[MC]::} ); + is_deeply( \@got, \@expected, 'multiple results from regexp ok' ); } # failed search