#209: Tests spit out UNIVERSAL::can warnings
------------------------+---------------------------------------------------
Reporter: Kake | Owner: Nobody
Type: defect | Status: new
Priority: normal | Milestone:
Component: openguides | Version: svn
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Some of our tests emit warnings like:
Called UNIVERSAL::can() …
[View More]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.)
--
Ticket URL: <http://dev.openguides.org/ticket/209>
OpenGuides <http://openguides.org/>
The OpenGuides city guides project
[View Less]