Skip Menu |

This queue is for tickets about the Role-Tiny CPAN distribution.

Report information
The Basics
Id: 77049
Status: resolved
Priority: 0/
Queue: Role-Tiny

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc: mschwern [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.001002
Fixed in: (no value)



CC: MSCHWERN [...] cpan.org
Subject: Fails with Test::More 1.005000_005
Can't locate object method "handle_result" via package "TB2::OnlyOnePlan" Sample fail report: http://www.cpantesters.org/cpan/report/21465613 CC'd to Schwern with the plea for comment. Thanks && Regards,
You have this in your test. local *UNIVERSAL::can = sub { 1 }; Can't break the language and then expect the language to work. :) Simplest work around would be to put the broken can() into its own block with just the code it effects. { { no warnings 'redefine'; local *UNIVERSAL::can = sub { 1 }; eval <<' END'; package Can::Can; use Role::Tiny 'with'; with 'A::NonExistent::Role'; END } my $error = $@ || ''; like $error, qr{^Can't locate A/NonExistent/Role.pm}, ...; }
On Sun May 13 13:54:25 2012, MSCHWERN wrote: Show quoted text
> You have this in your test. > > local *UNIVERSAL::can = sub { 1 }; > > Can't break the language and then expect the language to work. :)
Sorry. Cargo culted stupidity from Ovid's Role::Basic tests. It'll be fixed in the next release.