From: Tomas Doran Date: Wed, 18 Nov 2009 22:38:44 +0000 (+0000) Subject: This is also toast. We need a much better error, but this can go X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=refs%2Fheads%2Fbasic-app-ctx-separation-cleaned-appnotcomponent This is also toast. We need a much better error, but this can go --- diff --git a/t/aggregate/custom_live_path_bug.t b/t/aggregate/custom_live_path_bug.t deleted file mode 100644 index a6081c4..0000000 --- a/t/aggregate/custom_live_path_bug.t +++ /dev/null @@ -1,39 +0,0 @@ -#!perl - -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/../lib"; - -our $iters; - -BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } - -use Test::More tests => 2*$iters; -use Catalyst::Test 'TestAppPathBug'; - -if ( $ENV{CAT_BENCHMARK} ) { - require Benchmark; - Benchmark::timethis( $iters, \&run_tests ); -} -else { - for ( 1 .. $iters ) { - run_tests(); - } -} - -sub run_tests { - SKIP: - { - if ( $ENV{CATALYST_SERVER} ) { - skip 'Using remote server', 2; - } - - { - my $expected = 'This is the foo method.'; - ok( my $response = request('http://localhost/'), 'response ok' ); - is( $response->content, $expected, 'Content OK' ); - } - } -} diff --git a/t/deprecated_appclass_action_warnings.t b/t/deprecated_appclass_action_warnings.t deleted file mode 100644 index f25d8d5..0000000 --- a/t/deprecated_appclass_action_warnings.t +++ /dev/null @@ -1,18 +0,0 @@ -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; - -use Test::More; -use Catalyst::Test 'DeprecatedActionsInAppClassTestApp'; - -plan tests => 3; - -my $warnings; -my $logger = DeprecatedActionsInAppClassTestApp::Log->new; -Catalyst->log($logger); - -ok( my $response = request('http://localhost/foo'), 'Request' ); -ok( $response->is_success, 'Response Successful 2xx' ); -is( $DeprecatedActionsInAppClassTestApp::Log::warnings, 1, 'Get the appclass action warning' ); \ No newline at end of file diff --git a/t/lib/DeprecatedActionsInAppClassTestApp.pm b/t/lib/DeprecatedActionsInAppClassTestApp.pm deleted file mode 100644 index 9c870b0..0000000 --- a/t/lib/DeprecatedActionsInAppClassTestApp.pm +++ /dev/null @@ -1,30 +0,0 @@ -package DeprecatedActionsInAppClassTestApp; - -use strict; -use warnings; -use Catalyst; - -our $VERSION = '0.01'; - -__PACKAGE__->config( name => 'DeprecatedActionsInAppClassTestApp', root => '/some/dir' ); -__PACKAGE__->log(DeprecatedActionsInAppClassTestApp::Log->new); -__PACKAGE__->setup; - -sub foo : Local { - my ($self, $c) = @_; - $c->res->body('OK'); -} - -package DeprecatedActionsInAppClassTestApp::Log; -use strict; -use warnings; -use base qw/Catalyst::Log/; - -our $warnings; - -sub warn { - my ($self, $warning) = @_; - $warnings++ if $warning =~ /action methods .+ found defined/i; -} - -1; diff --git a/t/lib/TestAppPathBug/Controller/Root.pm b/t/lib/TestAppPathBug/Controller/Root.pm new file mode 100644 index 0000000..8630dad --- /dev/null +++ b/t/lib/TestAppPathBug/Controller/Root.pm @@ -0,0 +1,14 @@ +package TestAppPathBug::Controller::Root; +use strict; +use warnings; +use base qw/Catalyst::Controller/; + +__PACKAGE__->config(namespace => ''); + +sub foo : Path { + my ( $self, $c ) = @_; + $c->res->body( 'This is the foo method.' ); +} + +1; +