From: Dave Rolsky Date: Sat, 22 Jan 2011 15:59:41 +0000 (-0600) Subject: use done_testing in all .t files X-Git-Tag: 0.89~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=10018fb41e431b85f35f8e11eeabb4ac15b8b19d use done_testing in all .t files --- diff --git a/t/catalyst-action-deserialize.t b/t/catalyst-action-deserialize.t index 8cd13d8..52ec2b2 100644 --- a/t/catalyst-action-deserialize.t +++ b/t/catalyst-action-deserialize.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More; use YAML::Syck; use FindBin; @@ -26,3 +26,5 @@ my $ures = request($ut->put( url => $url, data => Dump({ kitty => "LouLou" }))); is ($bres->code, 415, 'GET on unknown Content-Type returns 415'); 1; + +done_testing; diff --git a/t/catalyst-action-rest.t b/t/catalyst-action-rest.t index 535ac4e..324df80 100644 --- a/t/catalyst-action-rest.t +++ b/t/catalyst-action-rest.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 18; +use Test::More; use FindBin; use lib ( "$FindBin::Bin/lib", "$FindBin::Bin/../lib" ); @@ -54,3 +54,5 @@ is( ); 1; + +done_testing; diff --git a/t/catalyst-action-serialize-query.t b/t/catalyst-action-serialize-query.t index cf04057..ef70003 100644 --- a/t/catalyst-action-serialize-query.t +++ b/t/catalyst-action-serialize-query.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 3; +use Test::More; use FindBin; use lib ("$FindBin::Bin/lib", "$FindBin::Bin/../lib", "$FindBin::Bin/broken"); @@ -22,3 +22,5 @@ EOH is( $res->content, $data, "Request returned proper data"); 1; + +done_testing; diff --git a/t/data-serializer.t b/t/data-serializer.t index 77db8cf..7fb3932 100644 --- a/t/data-serializer.t +++ b/t/data-serializer.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 31; +use Test::More; use FindBin; use lib ( "$FindBin::Bin/lib", "$FindBin::Bin/../lib" ); @@ -78,3 +78,5 @@ foreach my $content_type (keys(%ctypes)) { } 1; + +done_testing; diff --git a/t/isa.t b/t/isa.t index 14e3343..47684f9 100644 --- a/t/isa.t +++ b/t/isa.t @@ -4,7 +4,7 @@ use warnings; use FindBin qw/$Bin/; use lib "$Bin/lib"; -use Test::More tests => 5; +use Test::More; use Test::Catalyst::Action::REST; @@ -18,3 +18,4 @@ isa_ok($action, 'Catalyst::Action::REST'); ok(!$action->isa('Catalyst')); ok(!$action->isa('Catalyst::Controller')); +done_testing; diff --git a/t/json.t b/t/json.t index 35d6059..6fb6046 100644 --- a/t/json.t +++ b/t/json.t @@ -10,7 +10,6 @@ use utf8; eval 'use JSON 2.12'; plan skip_all => 'Install JSON 2.12 or later to run this test' if ($@); -plan tests => 11; use_ok 'Catalyst::Test', 'Test::Serialize'; @@ -47,3 +46,5 @@ for ('text/x-json', 'application/json') { } 1; + +done_testing; diff --git a/t/jsonp.t b/t/jsonp.t index 70f9b18..97a77cd 100644 --- a/t/jsonp.t +++ b/t/jsonp.t @@ -10,7 +10,6 @@ use utf8; eval 'use JSON 2.12'; plan skip_all => 'Install JSON 2.12 or later to run this test' if ($@); -plan tests => 7; use_ok 'Catalyst::Test', 'Test::Serialize', 'Catalyst::Action::Serialize::JSON'; @@ -28,3 +27,5 @@ for ('text/javascript','application/x-javascript','application/javascript') { } 1; + +done_testing; diff --git a/t/view.t b/t/view.t index 07b3974..f82af4b 100644 --- a/t/view.t +++ b/t/view.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More; use FindBin; use lib ( "$FindBin::Bin/lib", "$FindBin::Bin/../lib" ); @@ -25,3 +25,5 @@ ok (! $res->is_success, 'View errors result in failure'); like( $res->content, qr/don't know how/, 'The error looks okay'); 1; + +done_testing; diff --git a/t/xml-simple.t b/t/xml-simple.t index 3422e78..ded20ef 100644 --- a/t/xml-simple.t +++ b/t/xml-simple.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More; use FindBin; use lib ("$FindBin::Bin/lib", "$FindBin::Bin/../lib"); @@ -33,3 +33,5 @@ SKIP: { }; 1; + +done_testing; diff --git a/t/yaml-html.t b/t/yaml-html.t index dc50a7d..a77f085 100644 --- a/t/yaml-html.t +++ b/t/yaml-html.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::More; use YAML::Syck; use FindBin; @@ -30,3 +30,5 @@ SKIP: { } 1; + +done_testing; diff --git a/t/yaml.t b/t/yaml.t index 3478fc2..3c5a557 100644 --- a/t/yaml.t +++ b/t/yaml.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More; use FindBin; use lib ("$FindBin::Bin/lib", "$FindBin::Bin/../lib"); @@ -32,3 +32,5 @@ SKIP: { }; 1; + +done_testing;