projects
/
catagits/Catalyst-Controller-DBIC-API.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Change order in generate_rs so that stash->{class} always overrides ->class Add tests
[catagits/Catalyst-Controller-DBIC-API.git]
/
t
/
lib
/
RestTest
/
Controller
/
API
/
REST
/
StashedClass.pm
diff --git
a/t/lib/RestTest/Controller/API/REST/StashedClass.pm
b/t/lib/RestTest/Controller/API/REST/StashedClass.pm
index
804e7ae
..
dde1033
100644
(file)
--- a/
t/lib/RestTest/Controller/API/REST/StashedClass.pm
+++ b/
t/lib/RestTest/Controller/API/REST/StashedClass.pm
@@
-6,7
+6,9
@@
use namespace::autoclean;
sub setup :Chained('/api/rest/rest_base') :CaptureArgs(1) :PathPart('stashedclass') {
my ($self, $c, $class) = @_;
- $c->stash->{class} = $class;
+
+ $c->stash->{class} = $class if $class ne 'noclass';
+
$self->next::method($c);
}