Skip to content
Permalink
Browse files

Adding tests for previous commit, showing alteration of \ into DS.

  • Loading branch information...
markstory committed Oct 13, 2009
1 parent e5a99b2 commit a4d09a806c4c92905838f0ddade1b857e57369c0
Showing with 4 additions and 0 deletions.
  1. +4 −0 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.

0 comments on commit a4d09a8

Please sign in to comment.
You can’t perform that action at this time.