Subject: | Test Fails "Args('')" |
The tests for MojoMojo failed and MojoMojo cannot be installed. Running
the tests print out an error that "Args('')" is invalid and should be
"Args" or "Args(0)" there is an attachment with this error message and a
patch.
Subject: | mojomojo-patch.txt |
diff --git a/MojoMojo/Controller/Attachment.pm b/MojoMojo/Controller/Attachment.pm
index 8bf3330..af821e9 100644
--- a/MojoMojo/Controller/Attachment.pm
+++ b/MojoMojo/Controller/Attachment.pm
@@ -101,7 +101,7 @@ sub attachment : Chained CaptureArgs(1) {
$c->detach('default') unless ( $c->stash->{att} );
}
-sub defaultaction : PathPart('') Chained('attachment') Args('') {
+sub defaultaction : PathPart('') Chained('attachment') Args(0) {
my ( $self, $c ) = @_;
$c->forward('view');
}
Subject: | mojomojo-error.txt |
# Failed test 'use Catalyst::Test;'
# at t/revisions.t line 14.
# Tried to use 'Catalyst::Test'.
# Error: Could not load class (MojoMojo) because : Invalid Args('') for action attachment/defaultaction (use 'Args' or 'Args(<number>)'Compilation failed in require at /home/sidburn/perl510/lib/site_perl/5.10.0/i686-linux/Class/MOP.pm line 134.
# at /home/sidburn/perl510/lib/site_perl/5.10.0/i686-linux/Class/MOP.pm line 119
# Class::MOP::load_first_existing_class('MojoMojo') called at /home/sidburn/perl510/lib/site_perl/5.10.0/i686-linux/Class/MOP.pm line 140
# Class::MOP::load_class('MojoMojo') called at /home/sidburn/perl510/lib/site_perl/5.10.0/Catalyst/Test.pm line 23
# Catalyst::Test::__ANON__('Catalyst::Test', 'all', 'HASH(0x925b8e0)', 'HASH(0x8c26bb0)') called at /home/sidburn/perl510/lib/site_perl/5.10.0/Sub/Exporter.pm line 493
# Sub::Exporter::_expand_group('Catalyst::Test', 'HASH(0x925b380)', 'ARRAY(0x924c448)', 'HASH(0x8c26bb0)', 'HASH(0x925b930)', 'HASH(0x924c8c8)') called at /home/sidburn/perl510/lib/site_perl/5.10.0/Sub/Exporter.pm line 424
# Sub::Exporter::_expand_groups('Catalyst::Test', 'HASH(0x925b380)', 'ARRAY(0x925b400)', 'HASH(0x8c26bb0)') called at /home/sidburn/perl510/lib/site_perl/5.10.0/Sub/Exporter.pm line 742
# Sub::Exporter::__ANON__('Catalyst::Test', '-all', 'HASH(0x8c26b60)') called at /home/sidburn/perl510/lib/site_perl/5.10.0/Catalyst/Test.pm line 106
# Catalyst::Test::import('Catalyst::Test', 'MojoMojo') called at (eval 4) line 2
# main::BEGIN() called at /home/sidburn/perl510/lib/site_perl/5.10.0/Catalyst/Test.pm line 2
# eval {...} called at /home/sidburn/perl510/lib/site_perl/5.10.0/Catalyst/Test.pm line 2
# eval 'package main;
# use Catalyst::Test @{$args[0]};
# 1;
#
# ;' called at /home/sidburn/perl510/lib/5.10.0/Test/More.pm line 805
# Test::More::_eval('package main;\x{a}use Catalyst::Test @{$args[0]};\x{a}1;\x{a}', 'ARRAY(0x8b9c138)') called at /home/sidburn/perl510/lib/5.10.0/Test/More.pm line 780
# Test::More::use_ok('Catalyst::Test', 'MojoMojo') called at t/revisions.t line 14
# main::BEGIN() called at /home/sidburn/perl510/lib/site_perl/5.10.0/Catalyst/Test.pm line 2
# eval {...} called at /home/sidburn/perl510/lib/site_perl/5.10.0/Catalyst/Test.pm line 2
# BEGIN failed--compilation aborted at (eval 4) line 2.
Undefined subroutine &main::get called at t/revisions.t line 20.
# Looks like you planned 2 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.