Opened 14 years ago

Closed 14 years ago

#209 closed defect (fixed)

Tests spit out UNIVERSAL::can warnings

Reported by: Kake Owned by: Nobody
Priority: normal Milestone:
Component: openguides Version: svn
Severity: normal Keywords:
Cc:

Description

Some of our tests emit warnings like:

Called UNIVERSAL::can() as a function, not a method at /usr/local/stow/perl-5.8.8/lib/site_perl/5.8.8/i686-linux/Template/Provider.pm line 276

This is because of chromatic's UNIVERSAL::can module. Andy Wardley (Template Toolkit author) is of the opinion that UNIVERSAL::can shouldn't be doing this, and it looks like he's right. So it would be good to make it so people can uninstall UNIVERSAL::can yet still be able to install OpenGuides.

We use Test::MockObject? in our tests, and this depends on UNIVERSAL::can - however, I think we can probably remove this dependency by rewriting those tests, since we now have OpenGuides::Test to use instead.

(I _think_ we also use it in Wiki::Toolkit's tests, though, and rewriting those may be more complicated.)

Change History (1)

comment:1 Changed 14 years ago by Kake

Resolution: fixed
Status: newclosed

Fixed in [1042].

Note: See TracTickets for help on using tickets.