From a4d09a806c4c92905838f0ddade1b857e57369c0 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 13 Oct 2009 00:01:09 -0400 Subject: [PATCH] Adding tests for previous commit, showing alteration of \ into DS. --- .../cases/libs/controller/components/request_handler.test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/tests/cases/libs/controller/components/request_handler.test.php b/cake/tests/cases/libs/controller/components/request_handler.test.php index 7285ba847a9..e0adee344bb 100644 --- a/cake/tests/cases/libs/controller/components/request_handler.test.php +++ b/cake/tests/cases/libs/controller/components/request_handler.test.php @@ -258,6 +258,10 @@ function testRenderAs() { $this->assertFalse(in_array('Xml', $this->Controller->helpers)); $this->RequestHandler->renderAs($this->Controller, 'xml'); $this->assertTrue(in_array('Xml', $this->Controller->helpers)); + + $this->Controller->viewPath = 'request_handler_test\\xml'; + $this->RequestHandler->renderAs($this->Controller, 'js'); + $this->assertEqual($this->Controller->viewPath, 'request_handler_test' . DS . 'js'); } /** * test that calling renderAs() more than once continues to work.