X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_component_loading.t;h=f0204ec2ebb3b7f015bc43c60e6094b622950cb1;hb=c45c5d3787dfb147d4bfb4542283f52a3223fa87;hp=ffd20a5b35c6abde3902b677f5716b69e71ea51f;hpb=18de900e2fecac0ce4e6d3056d4e31bb6e71d81d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_core_component_loading.t b/t/unit_core_component_loading.t index ffd20a5..f0204ec 100644 --- a/t/unit_core_component_loading.t +++ b/t/unit_core_component_loading.t @@ -148,14 +148,7 @@ $complist = $appclass->components; is(scalar keys %$complist, 24+1, "Correct number of components loaded"); -my $seen_foo_controller = 0; -my $seen_extra = 0; -foreach (keys %$complist) { - $seen_foo_controller++ if $_ eq "${appclass}::Controller::Foo"; - $seen_extra++ if $_ eq "${appclass}::Extra::Foo"; -} - -is( $seen_foo_controller, 0, 'Controller::Foo was skipped' ); -is( $seen_extra, 1, 'Extra::Foo was loaded' ); +ok( !exists $complist->{ "${appclass}::Controller::Foo" }, 'Controller::Foo was skipped' ); +ok( exists $complist->{ "${appclass}::Extra::Foo" }, 'Extra::Foo was loaded' ); rmtree($libdir); \ No newline at end of file