#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() 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.)
#209: Tests spit out UNIVERSAL::can warnings ------------------------+--------------------------------------------------- Reporter: Kake | Owner: Nobody Type: defect | Status: closed Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: fixed Keywords: | ------------------------+--------------------------------------------------- Changes (by Kake):
* status: new => closed * resolution: => fixed
Comment:
Fixed in [1042].
openguides-tickets@lists.openguides.org