#!/usr/bin/perl
+# This is automatically generated by author/import-moose-test.pl.
+# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
+use t::lib::MooseCompat;
use strict;
use warnings;
-use Test::More tests => 23;
+use Test::More;
+$TODO = q{Mouse is not yet completed};
use Test::Exception;
-use Test::Moose;
-
+use Test::Mouse;
{
package My::Attribute::Trait;
- use Moose::Role;
+ use Mouse::Role;
has 'alias_to' => (is => 'ro', isa => 'Str');
);
};
- package Moose::Meta::Attribute::Custom::Trait::Aliased;
+ package Mouse::Meta::Attribute::Custom::Trait::Aliased;
sub register_implementation { 'My::Attribute::Trait' }
}
{
package My::Other::Attribute::Trait;
- use Moose::Role;
+ use Mouse::Role;
my $method = sub {
42;
);
};
- package Moose::Meta::Attribute::Custom::Trait::Other;
+ package Mouse::Meta::Attribute::Custom::Trait::Other;
sub register_implementation { 'My::Other::Attribute::Trait' }
}
{
package My::Class;
- use Moose;
+ use Mouse;
has 'bar' => (
traits => [qw/Aliased/],
{
package My::Derived::Class;
- use Moose;
+ use Mouse;
extends 'My::Class';
can_ok($quux, 'additional_method');
is(eval { $quux->additional_method }, 42, '... got the right value for additional_method');
+done_testing;