From: Christian Hansen Date: Wed, 23 Mar 2005 03:16:09 +0000 (+0000) Subject: updated test to use C::E::Test X-Git-Tag: 5.7099_04~1721 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=e05c5e3cc1521a00baae44334d7b119edf2b17d1 updated test to use C::E::Test --- diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index 0f2762e..ff4437c 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -6,6 +6,7 @@ use UNIVERSAL::require; require Catalyst; my $class; +$ENV{CATALYST_ENGINE} = 'Test'; =head1 NAME diff --git a/t/03plainaction.t b/t/03plainaction.t index dc16fa2..6ca8e81 100644 --- a/t/03plainaction.t +++ b/t/03plainaction.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/04regexaction.t b/t/04regexaction.t index 4038d64..142eeea 100644 --- a/t/04regexaction.t +++ b/t/04regexaction.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( '/foo/(.*)/' => sub { diff --git a/t/05parameters.t b/t/05parameters.t index fbeecae..2465ddc 100644 --- a/t/05parameters.t +++ b/t/05parameters.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/06arguments.t b/t/06arguments.t index 0f9af7b..e4c76cf 100644 --- a/t/06arguments.t +++ b/t/06arguments.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/07headers.t b/t/07headers.t index 28c8449..70288f9 100644 --- a/t/07headers.t +++ b/t/07headers.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/08cookies.t b/t/08cookies.t index f4a41d9..833f28a 100644 --- a/t/08cookies.t +++ b/t/08cookies.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/09forward.t b/t/09forward.t index e2a736d..934c058 100644 --- a/t/09forward.t +++ b/t/09forward.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/10redirect.t b/t/10redirect.t index a3e7d33..ef9e537 100644 --- a/t/10redirect.t +++ b/t/10redirect.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/11stash.t b/t/11stash.t index 505bcb3..019b699 100644 --- a/t/11stash.t +++ b/t/11stash.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( foo => sub { diff --git a/t/12default.t b/t/12default.t index 18d9884..927ad97 100644 --- a/t/12default.t +++ b/t/12default.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( '!default' => sub { diff --git a/t/13beginend.t b/t/13beginend.t index 36adde2..3469eec 100644 --- a/t/13beginend.t +++ b/t/13beginend.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( diff --git a/t/14connection.t b/t/14connection.t index ea3a353..54ead9d 100644 --- a/t/14connection.t +++ b/t/14connection.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( hostname => sub { diff --git a/t/15post.t b/t/15post.t index 459887c..45abbd3 100644 --- a/t/15post.t +++ b/t/15post.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; __PACKAGE__->action( echo => sub { diff --git a/t/16uri.t b/t/16uri.t index 86278ed..857c771 100644 --- a/t/16uri.t +++ b/t/16uri.t @@ -1,6 +1,6 @@ package TestApp; -use Catalyst; +use Catalyst qw[-Engine=Test]; TestApp->action( '!default' => \&default ); TestApp->action( 'index/a/b' => \&default );