[Jifty-commit] jifty branch, master, updated. e5d739bb0a23a4d2f8221762b186f0e597582963

Jifty commits jifty-commit at lists.jifty.org
Thu Apr 29 01:00:55 EDT 2010


The branch, master has been updated
       via  e5d739bb0a23a4d2f8221762b186f0e597582963 (commit)
      from  5dd4794cbb3ac81332145cd60e5624cc3ca2a8cd (commit)

Summary of changes:
 t/TestApp-Plugin-REST/t/02-basic-use.t |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit e5d739bb0a23a4d2f8221762b186f0e597582963
Author: Chia-liang Kao <clkao at clkao.org>
Date:   Thu Apr 29 13:00:37 2010 +0800

    test for REST xml request.

diff --git a/t/TestApp-Plugin-REST/t/02-basic-use.t b/t/TestApp-Plugin-REST/t/02-basic-use.t
index 3314508..18cd573 100644
--- a/t/TestApp-Plugin-REST/t/02-basic-use.t
+++ b/t/TestApp-Plugin-REST/t/02-basic-use.t
@@ -9,7 +9,7 @@ This is a template for your own tests. Copy it and modify it.
 
 =cut
 
-use Jifty::Test::Dist tests => 80;
+use Jifty::Test::Dist tests => 81;
 use Jifty::Test::WWW::Mechanize;
 
 my $server  = Jifty::Test->make_server;
@@ -191,7 +191,11 @@ eval {
 ok($content{success});
 is($content{message}, 'Something happened!');
 
-    
+# Test XML posts
+$mech->post ( $URL . '/=/action/DoSomething.xml', { email => 'good at email.com' } );
+
+$mech->content_like(qr'<message>Something happened!</message>');
+
 $mech->post ( $URL . '/=/action/DoSomething.yaml', { email => 'bad at email.com' } );
 
 eval {

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list