# > Fixed looks_like_number(undef) to return false for perl >= 5.009002
requires 'Scalar::Util' => 1.14;
-build_requires 'Test::Exception' => 0.21;
-build_requires 'Test::More' => 0.80;
+test_requires 'Test::Exception' => 0.21;
+test_requires 'Test::More' => 0.80;
if ($Module::Install::AUTHOR) {
- if (eval "package foo; use Moose; 1;") {
+ local @INC = ('lib', @INC);
+ require 'lib/Mouse.pm'; # for moose_version()
+ my $require_version = Mouse->moose_version;
+
+ if (eval{ require Moose; Moose->VERSION($require_version) }) {
if (eval 'use Module::Install::AuthorTests; 1') {
create_moose_compatibility_test();
recursive_author_tests('xt');
print "you don't have a M::I::AuthorTests.\n";
}
} else {
- print "you don't have a moose. skipping moose compatibility test\n";
+ print "you don't have Moose $require_version. skipping moose compatibility test\n";
}
system("author/generate-mouse-tiny.pl");
}
# some test does not pass... currently skip it.
my %SKIP_TEST = (
'016-trigger.t' => "trigger's argument is incompatble :(",
-# '020-load-class.t' => "&Moose::is_class_loaded doesn't exists",
- '019-handles.t' => 'incompatible',
'029-new.t' => 'Class->new(undef) incompatible',
'010-isa-or.t' => 'Mouse has a [BUG]',
'044-attribute-metaclass.t' => 'Moose::Meta::Attribute does not have a "create"',