Resolve many 'failing' tests
gfx [Thu, 8 Oct 2009 11:24:22 +0000 (20:24 +0900)]
13 files changed:
t/020_attributes/012_misc_attribute_tests.t [moved from t/020_attributes/failing/012_misc_attribute_tests.t with 100% similarity]
t/020_attributes/013_attr_dereference_test.t [moved from t/020_attributes/failing/013_attr_dereference_test.t with 100% similarity]
t/020_attributes/014_misc_attribute_coerce_lazy.t [moved from t/020_attributes/failing/014_misc_attribute_coerce_lazy.t with 100% similarity]
t/020_attributes/015_attribute_traits.t
t/020_attributes/016_attribute_traits_registered.t
t/020_attributes/017_attribute_traits_n_meta.t
t/020_attributes/018_no_init_arg.t [moved from t/020_attributes/failing/018_no_init_arg.t with 100% similarity]
t/020_attributes/020_trigger_and_coerce.t [moved from t/020_attributes/failing/020_trigger_and_coerce.t with 100% similarity]
t/020_attributes/024_attribute_traits_parameterized.t [moved from t/020_attributes/failing/024_attribute_traits_parameterized.t with 100% similarity]
t/020_attributes/025_chained_coercion.t [moved from t/020_attributes/failing/025_chained_coercion.t with 100% similarity]
t/020_attributes/026_attribute_without_any_methods.t [moved from t/020_attributes/failing/026_attribute_without_any_methods.t with 93% similarity]
t/020_attributes/029_accessor_context.t [moved from t/020_attributes/failing/029_accessor_context.t with 100% similarity]
t/020_attributes/030_non_alpha_attr_names.t [moved from t/020_attributes/failing/030_non_alpha_attr_names.t with 100% similarity]

index 1121d52..eea984e 100644 (file)
@@ -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;
index 51640f9..bb216f9 100755 (executable)
@@ -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");
 
index 4f8b685..4d96e6c 100755 (executable)
@@ -3,6 +3,8 @@
 use strict;
 use warnings;
 
+use lib 't/lib';
+
 use Test::More tests => 7;
 use Test::Exception;
 use Test::Mouse;