From: gfx Date: Thu, 8 Oct 2009 11:24:22 +0000 (+0900) Subject: Resolve many 'failing' tests X-Git-Tag: 0.37_04~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=db53d2b4ec887312eff701faa1749e983182e5d0;p=gitmo%2FMouse.git Resolve many 'failing' tests --- diff --git a/t/020_attributes/failing/012_misc_attribute_tests.t b/t/020_attributes/012_misc_attribute_tests.t similarity index 100% rename from t/020_attributes/failing/012_misc_attribute_tests.t rename to t/020_attributes/012_misc_attribute_tests.t diff --git a/t/020_attributes/failing/013_attr_dereference_test.t b/t/020_attributes/013_attr_dereference_test.t similarity index 100% rename from t/020_attributes/failing/013_attr_dereference_test.t rename to t/020_attributes/013_attr_dereference_test.t diff --git a/t/020_attributes/failing/014_misc_attribute_coerce_lazy.t b/t/020_attributes/014_misc_attribute_coerce_lazy.t similarity index 100% rename from t/020_attributes/failing/014_misc_attribute_coerce_lazy.t rename to t/020_attributes/014_misc_attribute_coerce_lazy.t diff --git a/t/020_attributes/015_attribute_traits.t b/t/020_attributes/015_attribute_traits.t index 1121d52..eea984e 100644 --- a/t/020_attributes/015_attribute_traits.t +++ b/t/020_attributes/015_attribute_traits.t @@ -3,12 +3,12 @@ use strict; use warnings; +use lib 't/lib'; + use Test::More tests => 12; use Test::Exception; use Test::Mouse; - - { package My::Attribute::Trait; use Mouse::Role; diff --git a/t/020_attributes/016_attribute_traits_registered.t b/t/020_attributes/016_attribute_traits_registered.t index 51640f9..bb216f9 100755 --- a/t/020_attributes/016_attribute_traits_registered.t +++ b/t/020_attributes/016_attribute_traits_registered.t @@ -3,6 +3,8 @@ use strict; use warnings; +use lib 't/lib'; + use Test::More tests => 23; use Test::Exception; use Test::Mouse; @@ -87,7 +89,10 @@ does_ok($bar_attr, 'My::Attribute::Trait'); is($bar_attr->foo, "blah", "attr initialized"); ok(!$bar_attr->meta->does_role('Aliased'), "does_role ignores aliases for sanity"); +{ +local $TODO = 'aliased name is not supported'; ok($bar_attr->does('Aliased'), "attr->does uses aliases"); +} ok(!$bar_attr->meta->does_role('Fictional'), "does_role returns false for nonexistent roles"); ok(!$bar_attr->does('Fictional'), "attr->does returns false for nonexistent roles"); @@ -108,7 +113,10 @@ does_ok($derived_bar_attr, 'My::Other::Attribute::Trait' ); is($derived_bar_attr->the_other_attr, "oink", "attr initialized" ); ok(!$derived_bar_attr->meta->does_role('Aliased'), "does_role ignores aliases for sanity"); +{ +local $TODO = 'aliased name is not supported'; ok($derived_bar_attr->does('Aliased'), "attr->does uses aliases"); +} ok(!$derived_bar_attr->meta->does_role('Fictional'), "does_role returns false for nonexistent roles"); ok(!$derived_bar_attr->does('Fictional'), "attr->does returns false for nonexistent roles"); diff --git a/t/020_attributes/017_attribute_traits_n_meta.t b/t/020_attributes/017_attribute_traits_n_meta.t index 4f8b685..4d96e6c 100755 --- a/t/020_attributes/017_attribute_traits_n_meta.t +++ b/t/020_attributes/017_attribute_traits_n_meta.t @@ -3,6 +3,8 @@ use strict; use warnings; +use lib 't/lib'; + use Test::More tests => 7; use Test::Exception; use Test::Mouse; diff --git a/t/020_attributes/failing/018_no_init_arg.t b/t/020_attributes/018_no_init_arg.t similarity index 100% rename from t/020_attributes/failing/018_no_init_arg.t rename to t/020_attributes/018_no_init_arg.t diff --git a/t/020_attributes/failing/020_trigger_and_coerce.t b/t/020_attributes/020_trigger_and_coerce.t similarity index 100% rename from t/020_attributes/failing/020_trigger_and_coerce.t rename to t/020_attributes/020_trigger_and_coerce.t diff --git a/t/020_attributes/failing/024_attribute_traits_parameterized.t b/t/020_attributes/024_attribute_traits_parameterized.t similarity index 100% rename from t/020_attributes/failing/024_attribute_traits_parameterized.t rename to t/020_attributes/024_attribute_traits_parameterized.t diff --git a/t/020_attributes/failing/025_chained_coercion.t b/t/020_attributes/025_chained_coercion.t similarity index 100% rename from t/020_attributes/failing/025_chained_coercion.t rename to t/020_attributes/025_chained_coercion.t diff --git a/t/020_attributes/failing/026_attribute_without_any_methods.t b/t/020_attributes/026_attribute_without_any_methods.t similarity index 93% rename from t/020_attributes/failing/026_attribute_without_any_methods.t rename to t/020_attributes/026_attribute_without_any_methods.t index ece05db..0acf3c0 100644 --- a/t/020_attributes/failing/026_attribute_without_any_methods.t +++ b/t/020_attributes/026_attribute_without_any_methods.t @@ -1,5 +1,5 @@ #!/usr/bin/perl - +BEGIN{ $ENV{MOUSE_VERBOSE} = 1 } use strict; use warnings; diff --git a/t/020_attributes/failing/029_accessor_context.t b/t/020_attributes/029_accessor_context.t similarity index 100% rename from t/020_attributes/failing/029_accessor_context.t rename to t/020_attributes/029_accessor_context.t diff --git a/t/020_attributes/failing/030_non_alpha_attr_names.t b/t/020_attributes/030_non_alpha_attr_names.t similarity index 100% rename from t/020_attributes/failing/030_non_alpha_attr_names.t rename to t/020_attributes/030_non_alpha_attr_names.t