X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_component.t;h=53d6567815ecf20616e1669306128f3d5ca7bf5e;hb=9b1db775e21c29d58957aa1eb7f1446c83b4967a;hp=368f163c46664c028ab83a49f29f375fd3b4b682;hpb=ae29b412955743885e80350085167b54b69672da;p=catagits%2FCatalyst-Runtime.git 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