From: Shawn M Moore Date: Sun, 28 Sep 2008 16:25:22 +0000 (+0000) Subject: Begin replacing Test::Exception with a Moose::Util :test X-Git-Tag: 0.19~198 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=8c831d08b0d23c9dfcc4a85f6444915c988b5538 Begin replacing Test::Exception with a Moose::Util :test --- diff --git a/t/000-recipes/001_point.t b/t/000-recipes/001_point.t index d78638a..9fb061e 100644 --- a/t/000-recipes/001_point.t +++ b/t/000-recipes/001_point.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More tests => 58; -use Test::Exception; +use Mouse::Util ':test'; BEGIN { use_ok('Mouse'); diff --git a/t/001-strict.t b/t/001-strict.t index fb82c0e..15b9784 100644 --- a/t/001-strict.t +++ b/t/001-strict.t @@ -1,6 +1,6 @@ #!/usr/bin/env perl use Test::More tests => 1; -use Test::Exception; +use Mouse::Util ':test'; throws_ok { package Class; diff --git a/t/007-attributes.t b/t/007-attributes.t index 4316e25..869ed33 100644 --- a/t/007-attributes.t +++ b/t/007-attributes.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 10; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/010-required.t b/t/010-required.t index 161717c..0bf5f83 100644 --- a/t/010-required.t +++ b/t/010-required.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 3; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/011-lazy.t b/t/011-lazy.t index 2d87867..656163f 100644 --- a/t/011-lazy.t +++ b/t/011-lazy.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 16; -use Test::Exception; +use Mouse::Util ':test'; my $lazy_run = 0; diff --git a/t/016-trigger.t b/t/016-trigger.t index 223e387..29406c4 100644 --- a/t/016-trigger.t +++ b/t/016-trigger.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 11; -use Test::Exception; +use Mouse::Util ':test'; my @trigger; diff --git a/t/017-default-reference.t b/t/017-default-reference.t index 41d2593..18dc7b2 100644 --- a/t/017-default-reference.t +++ b/t/017-default-reference.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 8; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/019-handles.t b/t/019-handles.t index e48511a..5dbef10 100644 --- a/t/019-handles.t +++ b/t/019-handles.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 24; -use Test::Exception; +use Mouse::Util ':test'; do { package Person; diff --git a/t/020-load-class.t b/t/020-load-class.t index d115db7..8e8dc45 100644 --- a/t/020-load-class.t +++ b/t/020-load-class.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 11; -use Test::Exception; +use Mouse::Util ':test'; require Mouse; use lib 't/lib'; diff --git a/t/021-weak-ref.t b/t/021-weak-ref.t index cdafd3c..aa1a009 100644 --- a/t/021-weak-ref.t +++ b/t/021-weak-ref.t @@ -12,7 +12,7 @@ BEGIN { } } -use Test::Exception; +use Mouse::Util ':test'; my %destroyed; diff --git a/t/023-builder.t b/t/023-builder.t index 6b3e35e..24187ba 100644 --- a/t/023-builder.t +++ b/t/023-builder.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 47; -use Test::Exception; +use Mouse::Util ':test'; my $builder_called = 0; my $lazy_builder_called = 0; diff --git a/t/024-isa.t b/t/024-isa.t index 670a611..d3869f0 100644 --- a/t/024-isa.t +++ b/t/024-isa.t @@ -2,8 +2,8 @@ use strict; use warnings; use Test::More; -use Test::Exception; use IO::Handle; +use Mouse::Util ':test'; my @types = qw/Any Item Bool Undef Defined Value Num Int Str ClassName Ref ScalarRef ArrayRef HashRef CodeRef RegexpRef GlobRef diff --git a/t/025-more-isa.t b/t/025-more-isa.t index 132d57f..f092bed 100644 --- a/t/025-more-isa.t +++ b/t/025-more-isa.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 29; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/026-auto-deref.t b/t/026-auto-deref.t index d4b1df5..577a7eb 100644 --- a/t/026-auto-deref.t +++ b/t/026-auto-deref.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 15; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/029-new.t b/t/029-new.t index d387bdf..a14b570 100644 --- a/t/029-new.t +++ b/t/029-new.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 5; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/030-has-plus.t b/t/030-has-plus.t index 34b8ec4..bf62859 100644 --- a/t/030-has-plus.t +++ b/t/030-has-plus.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 3; -use Test::Exception; +use Mouse::Util ':test'; do { package Class; diff --git a/t/031-clone.t b/t/031-clone.t index 9d7454f..fd2a3bf 100644 --- a/t/031-clone.t +++ b/t/031-clone.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 10; -use Test::Exception; +use Mouse::Util ':test'; do { package Foo; diff --git a/t/301-bugs-non-mouse.t b/t/301-bugs-non-mouse.t index bfa53a4..0f30b3a 100644 --- a/t/301-bugs-non-mouse.t +++ b/t/301-bugs-non-mouse.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More 'no_plan'; -use Test::Exception; +use Mouse::Util ':test'; { package Foo; diff --git a/t/400-define-role.t b/t/400-define-role.t index 65c151e..66cddb0 100644 --- a/t/400-define-role.t +++ b/t/400-define-role.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 12; -use Test::Exception; +use Mouse::Util ':test'; lives_ok { package Role; diff --git a/t/402-attribute-application.t b/t/402-attribute-application.t index fbb400d..23ff3a2 100644 --- a/t/402-attribute-application.t +++ b/t/402-attribute-application.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 11; -use Test::Exception; +use Mouse::Util ':test'; do { package Role; diff --git a/t/403-method-modifiers.t b/t/403-method-modifiers.t index 67b0d6f..838adee 100644 --- a/t/403-method-modifiers.t +++ b/t/403-method-modifiers.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More tests => 4; -use Test::Exception; +use Mouse::Util ':test'; my @calls; my ($before, $after, $around); diff --git a/t/500_moose_extends_mouse.t b/t/500_moose_extends_mouse.t index bdc5770..25f29c5 100644 --- a/t/500_moose_extends_mouse.t +++ b/t/500_moose_extends_mouse.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More 'no_plan'; -use Test::Exception; +use Mouse::Util ':test'; { package Foo;