projects
/
catagits/Catalyst-Action-REST.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Test-case: When view is set, don't serialize
[catagits/Catalyst-Action-REST.git]
/
t
/
lib
/
Test
/
Catalyst
/
Action
/
REST
/
Controller
/
Serialize.pm
diff --git
a/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm
b/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm
index
4056898
..
0fd1592
100644
(file)
--- a/
t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm
+++ b/
t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm
@@
-48,4
+48,10
@@
sub empty_not_serialized_blank :Chained('empty') Args(0) ActionClass('Serialize'
$c->res->body('');
}
+# Explicitly set a view
+sub explicit_view :Chained('empty') Args(0) ActionClass('Serialize') {
+ my ($self, $c) = @_;
+ $c->stash->{current_view} = '';
+}
+
1;