-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from gfx/issue-17
Disable metaclass cache in M::M::Role::Application to fix #17
- Loading branch information
Showing
3 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
use Test::LeakTrace; | ||
|
||
{ | ||
package Iyan; | ||
use Mouse; | ||
} | ||
|
||
{ | ||
package Role1; | ||
use Mouse::Role; | ||
} | ||
|
||
{ | ||
package Role2; | ||
use Mouse::Role; | ||
} | ||
|
||
no_leaks_ok { | ||
foo(); | ||
} 'apply_all_roles'; | ||
|
||
note 'after no_leaks_ok'; | ||
|
||
done_testing; | ||
|
||
sub foo { | ||
my $self = bless {}, 'Iyan'; | ||
Mouse::Util::apply_all_roles($self, 'Role1', 'Role2'); | ||
} |