projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Catalyst::View::Mason fixed
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Test.pm
diff --git
a/lib/Catalyst/Test.pm
b/lib/Catalyst/Test.pm
index
9791b24
..
dcd839a
100644
(file)
--- a/
lib/Catalyst/Test.pm
+++ b/
lib/Catalyst/Test.pm
@@
-70,7
+70,7
@@
our $default_host;
sub import {
my ($self, $class, $opts) = @_;
$import->($self, '-all' => { class => $class });
- $opts ||= {};
+ $opts = {} unless ref $opts eq 'HASH';
$default_host = $opts->{default_host} if exists $opts->{default_host};
}
}