[Jifty-commit] r7593 - jifty/trunk/lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Wed Nov 4 23:13:02 EST 2009
Author: clkao
Date: Wed Nov 4 23:13:01 2009
New Revision: 7593
Modified:
jifty/trunk/lib/Jifty/Test.pm
Log:
Workaround the problem plan() only ignores unknown arguments if it sees known ones.
Modified: jifty/trunk/lib/Jifty/Test.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test.pm (original)
+++ jifty/trunk/lib/Jifty/Test.pm Wed Nov 4 23:13:01 2009
@@ -184,8 +184,8 @@
# Spit out a plan (if we got one) *before* we load modules, in
# case of compilation errors
unless ($class->builder->has_plan) {
- $class->builder->plan(@{$args})
- if $args{plan} || $args{skip_all};
+ $class->builder->plan(map { $_ => $args{$_ } } qw(tests skip_all))
+ if $args{tests} || $args{skip_all};
}
# Require the things we need
More information about the Jifty-commit
mailing list