Skip to content

Commit

Permalink
more paths
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 29, 2012
1 parent 35a8778 commit ec15b1f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -372,7 +372,7 @@ public function testRenderAs() {

$this->Controller->viewPath = 'request_handler_test\\rss';
$this->RequestHandler->renderAs($this->Controller, 'js');
$this->assertEquals('request_handler_test/js', $this->Controller->viewPath);
$this->assertEquals('request_handler_test' . DS . 'js', $this->Controller->viewPath);
}

/**
Expand Down Expand Up @@ -455,11 +455,11 @@ public function testRespondAsWithAttachment() {
*/
public function testRenderAsCalledTwice() {
$this->RequestHandler->renderAs($this->Controller, 'print');
$this->assertEquals('RequestHandlerTest/print', $this->Controller->viewPath);
$this->assertEquals('RequestHandlerTest' . DS . 'print', $this->Controller->viewPath);
$this->assertEquals('print', $this->Controller->layoutPath);

$this->RequestHandler->renderAs($this->Controller, 'js');
$this->assertEquals('RequestHandlerTest/js', $this->Controller->viewPath);
$this->assertEquals('RequestHandlerTest' . DS . 'js', $this->Controller->viewPath);
$this->assertEquals('js', $this->Controller->layoutPath);
$this->assertTrue(in_array('Js', $this->Controller->helpers));
}
Expand Down

0 comments on commit ec15b1f

Please sign in to comment.