From: Dave Rolsky Date: Fri, 26 Jun 2009 22:03:02 +0000 (-0500) Subject: remove useless use_ok tests X-Git-Tag: 0.89_02~102 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a5209c2625a9f91cf03edd1134725d433cf11e6d;p=gitmo%2FMoose.git remove useless use_ok tests --- diff --git a/t/070_attribute_helpers/010_array_from_role.t b/t/070_attribute_helpers/010_array_from_role.t index d3ef561..b647a98 100644 --- a/t/070_attribute_helpers/010_array_from_role.t +++ b/t/070_attribute_helpers/010_array_from_role.t @@ -3,13 +3,9 @@ use strict; use warnings; -use Test::More tests => 3; +use Test::More tests => 2; use Test::Exception; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package Foo; use Moose; @@ -18,6 +14,7 @@ BEGIN { package Stuffed::Role; use Moose::Role; + use Moose::AttributeHelpers; has 'options' => ( traits => ['Collection::Array'], @@ -27,6 +24,7 @@ BEGIN { package Bulkie::Role; use Moose::Role; + use Moose::AttributeHelpers; has 'stuff' => ( traits => ['Collection::Array'], diff --git a/t/070_attribute_helpers/011_counter_with_defaults.t b/t/070_attribute_helpers/011_counter_with_defaults.t index 6fe1061..e2299b2 100644 --- a/t/070_attribute_helpers/011_counter_with_defaults.t +++ b/t/070_attribute_helpers/011_counter_with_defaults.t @@ -3,16 +3,13 @@ use strict; use warnings; -use Test::More tests => 13; +use Test::More tests => 12; use Test::Moose; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package MyHomePage; use Moose; + use Moose::AttributeHelpers; has 'counter' => ( traits => ['Counter'] ); } diff --git a/t/070_attribute_helpers/020_remove_attribute.t b/t/070_attribute_helpers/020_remove_attribute.t index 6e75d5c..dcd3df8 100644 --- a/t/070_attribute_helpers/020_remove_attribute.t +++ b/t/070_attribute_helpers/020_remove_attribute.t @@ -3,16 +3,13 @@ use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 11; use Test::Exception; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package MyHomePage; use Moose; + use Moose::AttributeHelpers; has 'counter' => ( traits => ['Counter'], diff --git a/t/070_attribute_helpers/100_collection_with_roles.t b/t/070_attribute_helpers/100_collection_with_roles.t index ce95ed1..806d0c0 100644 --- a/t/070_attribute_helpers/100_collection_with_roles.t +++ b/t/070_attribute_helpers/100_collection_with_roles.t @@ -3,11 +3,7 @@ use strict; use warnings; -use Test::More tests => 29; - -BEGIN { - use_ok('Moose::AttributeHelpers'); -} +use Test::More tests => 28; { package Subject; diff --git a/t/070_attribute_helpers/201_trait_counter.t b/t/070_attribute_helpers/201_trait_counter.t index f311f65..31f8671 100644 --- a/t/070_attribute_helpers/201_trait_counter.t +++ b/t/070_attribute_helpers/201_trait_counter.t @@ -3,16 +3,13 @@ use strict; use warnings; -use Test::More tests => 17; +use Test::More tests => 16; use Test::Moose 'does_ok'; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package MyHomePage; use Moose; + use Moose::AttributeHelpers; has 'counter' => ( traits => [qw/Counter/], diff --git a/t/070_attribute_helpers/202_trait_array.t b/t/070_attribute_helpers/202_trait_array.t index 46376bc..ebbff5f 100644 --- a/t/070_attribute_helpers/202_trait_array.t +++ b/t/070_attribute_helpers/202_trait_array.t @@ -3,20 +3,17 @@ use strict; use warnings; -use Test::More tests => 69; +use Test::More tests => 68; use Test::Exception; use Test::Moose 'does_ok'; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - my $sort; { package Stuff; use Moose; + use Moose::AttributeHelpers; has 'options' => ( traits => [qw/Collection::Array/], diff --git a/t/070_attribute_helpers/203_trait_hash.t b/t/070_attribute_helpers/203_trait_hash.t index f9b6fd3..15bcda5 100644 --- a/t/070_attribute_helpers/203_trait_hash.t +++ b/t/070_attribute_helpers/203_trait_hash.t @@ -3,14 +3,10 @@ use strict; use warnings; -use Test::More tests => 47; +use Test::More tests => 46; use Test::Exception; use Test::Moose 'does_ok'; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package Stuff; use Moose; diff --git a/t/070_attribute_helpers/204_trait_number.t b/t/070_attribute_helpers/204_trait_number.t index 90c25f7..ad477ee 100644 --- a/t/070_attribute_helpers/204_trait_number.t +++ b/t/070_attribute_helpers/204_trait_number.t @@ -3,16 +3,13 @@ use strict; use warnings; -use Test::More tests => 26; +use Test::More tests => 25; use Test::Moose; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package Real; use Moose; + use Moose::AttributeHelpers; has 'integer' => ( traits => [qw/Number/], diff --git a/t/070_attribute_helpers/205_trait_list.t b/t/070_attribute_helpers/205_trait_list.t index 3df0ff1..9b27ad2 100644 --- a/t/070_attribute_helpers/205_trait_list.t +++ b/t/070_attribute_helpers/205_trait_list.t @@ -3,20 +3,17 @@ use strict; use warnings; -use Test::More tests => 34; +use Test::More tests => 33; use Test::Exception; use Test::Moose 'does_ok'; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - my $sort; my $less; my $up; { package Stuff; use Moose; + use Moose::AttributeHelpers; has '_options' => ( traits => [qw/Collection::List/], diff --git a/t/070_attribute_helpers/206_trait_bag.t b/t/070_attribute_helpers/206_trait_bag.t index 873e1ef..5309f3d 100644 --- a/t/070_attribute_helpers/206_trait_bag.t +++ b/t/070_attribute_helpers/206_trait_bag.t @@ -3,14 +3,10 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More tests => 19; use Test::Exception; use Test::Moose 'does_ok'; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - { package Stuff; diff --git a/t/070_attribute_helpers/207_trait_string.t b/t/070_attribute_helpers/207_trait_string.t index fa901c7..48183dc 100644 --- a/t/070_attribute_helpers/207_trait_string.t +++ b/t/070_attribute_helpers/207_trait_string.t @@ -3,17 +3,14 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More tests => 19; use Test::Moose 'does_ok'; -BEGIN { - use_ok('Moose::AttributeHelpers'); -} - my $uc; { package MyHomePage; use Moose; + use Moose::AttributeHelpers; has 'string' => ( traits => [qw/String/], diff --git a/t/070_attribute_helpers/208_trait_bool.t b/t/070_attribute_helpers/208_trait_bool.t index 1919985..eb173d2 100644 --- a/t/070_attribute_helpers/208_trait_bool.t +++ b/t/070_attribute_helpers/208_trait_bool.t @@ -4,12 +4,12 @@ use strict; use warnings; use Test::More tests => 8; -use Moose::AttributeHelpers; { - package Room; use Moose; + use Moose::AttributeHelpers; + has 'is_lit' => ( traits => ['Bool'], is => 'rw',