Skip to content

Commit

Permalink
Adding tests for previous commit, showing alteration of \ into DS.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 13, 2009
1 parent e5a99b2 commit a4d09a8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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.
Expand Down

0 comments on commit a4d09a8

Please sign in to comment.