[libdancer-plugin-rest-perl] 57/63: fix test t/04_plugin_settings.t

Jonas Smedegaard dr at jones.dk
Wed Jul 2 11:44:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag 0.07
in repository libdancer-plugin-rest-perl.

commit a4a25aff7e46028493277e60381ba96571c73037
Author: Alexis Sukrieh <sukria at sukria.net>
Date:   Sat May 28 15:30:24 2011 +0200

    fix test t/04_plugin_settings.t
---
 t/04_plugin_settings.t | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/t/04_plugin_settings.t b/t/04_plugin_settings.t
index e6baf2c..1b3b140 100644
--- a/t/04_plugin_settings.t
+++ b/t/04_plugin_settings.t
@@ -17,15 +17,7 @@ my $yaml = YAML::Dump($data);
     use Dancer;
     use Dancer::Plugin::REST;
 
-    setting plugins => {
-        REST => {
-            serializers => {
-                'yaml' => 'YAML',
-                'json' => 'NotExists',
-            }
-        }
-    };
-
+    set environment => 'test';
     prepare_serializer_for_format;
 
     get '/' => sub { "root" };
@@ -43,10 +35,10 @@ my @tests = (
     },
     { 
         request => [GET => '/foo.json'],
-        response => qr/An internal error occured/ms
+        response => $json,
     },
     { 
-        request => [GET => '/foo.yaml'],
+        request => [GET => '/foo.yml'],
         response => $yaml,
     },
     { 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-rest-perl.git



More information about the Pkg-perl-cvs-commits mailing list