Commit | Line | Data |
4c98ebb0 |
1 | use strict; |
fde8e43f |
2 | # This is automatically generated by author/import-moose-test.pl. |
3 | # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! |
4 | use t::lib::MooseCompat; |
4c98ebb0 |
5 | use warnings; |
6 | |
7 | use Test::Exception; |
fde8e43f |
8 | use Test::More; |
4c98ebb0 |
9 | |
10 | { |
11 | |
12 | package FakeBar; |
13 | use Mouse::Role; |
14 | |
15 | around isa => sub { |
16 | my ( $orig, $self, $v ) = @_; |
17 | return 1 if $v eq 'Bar'; |
18 | return $orig->( $self, $v ); |
19 | }; |
20 | |
21 | package Foo; |
22 | use Mouse; |
23 | |
24 | use Test::More; # for $TODO |
25 | |
26 | local $TODO = 'UNIVERSAL methods should be wrappable'; |
27 | |
28 | ::lives_ok { with 'FakeBar' } 'applied role'; |
29 | |
30 | my $foo = Foo->new; |
31 | ::isa_ok $foo, 'Bar'; |
32 | } |
fde8e43f |
33 | |
34 | done_testing; |