Fix RT#43375
Tomas Doran [Tue, 28 Apr 2009 20:58:15 +0000 (20:58 +0000)]
Changes
t/unit_core_component.t

diff --git a/Changes b/Changes
index da30dea..588730c 100644 (file)
--- 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
index 368f163..53d6567 100644 (file)
@@ -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