projects
/
catagits/Catalyst-Controller-DBIC-API.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added test for action that returns an error
[catagits/Catalyst-Controller-DBIC-API.git]
/
t
/
lib
/
RestTest
/
Controller
/
API
/
REST
/
Artist.pm
diff --git
a/t/lib/RestTest/Controller/API/REST/Artist.pm
b/t/lib/RestTest/Controller/API/REST/Artist.pm
index
3dad378
..
d2ceada
100644
(file)
--- a/
t/lib/RestTest/Controller/API/REST/Artist.pm
+++ b/
t/lib/RestTest/Controller/API/REST/Artist.pm
@@
-12,4
+12,10
@@
__PACKAGE__->config
prefetch_allows => [[qw/ cds /],{ 'cds' => 'tracks'}],
);
+sub action_with_error : Chained('objects_no_id') PathPart('action_with_error') Args(0) {
+ my ( $self, $c ) = @_;
+
+ $c->res->status(404);
+}
+
1;