Closed ppisar closed 11 years ago
So both failures are due to finer messages since SImple-Test-0.85_04.
Fix:
diff --git a/t/validate_attribute.t b/t/validate_attribute.t
index e06f801..7692c5c 100644
--- a/t/validate_attribute.t
+++ b/t/validate_attribute.t
@@ -38,7 +38,11 @@ note 'validate attribute validation';
test_out $_ok->('TestClass has an attribute named foo');
test_out $_ok->(q{Moose::Meta::Class::__ANON__::SERIAL::1 has a metaclass});
test_out $_ok->(q{Moose::Meta::Class::__ANON__::SERIAL::1 is a Moose class});
- test_out $_ok->('The object isa Moose::Meta::Attribute');
+ if ($Test::More::VERSION < 0.9804) {
+ test_out $_ok->(q{The object isa Moose::Meta::Attribute});
+ } else {
+ test_out $_ok->(q{An object of class 'Moose::Meta::Class::__ANON__::SERIAL::1' isa 'Moose::Meta::Attribute'});
+ }
test_out $_ok->('Moose::Meta::Class::__ANON__::SERIAL::1 does TestRole');
test_out $_ok->('foo is required');
test_out $_ok->('foo has a builder');
diff --git a/t/validate_class.t b/t/validate_class.t
index 4b183bf..c9e74e5 100644
--- a/t/validate_class.t
+++ b/t/validate_class.t
@@ -47,7 +47,11 @@ note 'validate w/valid class';
my ($_ok, $_nok) = counters();
test_out $_ok->('TestClass has a metaclass');
test_out $_ok->('TestClass is a Moose class');
- test_out $_ok->('The class isa Moose::Object');
+ if ($Test::More::VERSION < 0.9804) {
+ test_out $_ok->(q{The class isa Moose::Object});
+ } else {
+ test_out $_ok->(q{The class (or class-like) 'TestClass' isa 'Moose::Object'});
+ }
test_out $_ok->('TestClass is not anonymous');
test_out $_ok->('TestClass does TestRole');
test_out $_ok->('TestClass does not do TestRole::Two');
I experience these failures:
I don't know where the message are coming from. But I think this is just a more verbose Moose diagnostics. My versions are: