Fix .gitignore for new dist name
[catagits/Catalyst-Action-Serialize-Data-Serializer.git] / t / lib / Test / Catalyst / Action / REST / Controller / Serialize.pm
index 4056898..61b502e 100644 (file)
@@ -9,10 +9,7 @@ __PACKAGE__->config(
     'default'   => 'text/x-yaml',
     'stash_key' => 'rest',
     'map'       => {
-        'text/x-yaml'        => 'YAML',
-        'application/json'   => 'JSON',
         'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
-        'text/broken'        => 'Broken',
     },
 );
 
@@ -48,4 +45,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;