Skip to content

Commit

Permalink
Commiting fix to pass tests in last commit.
Browse files Browse the repository at this point in the history
Making View::renderCache tests more specific.
  • Loading branch information
markstory committed Sep 15, 2009
1 parent 8cf7dbb commit f1194a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/view/view.php
Expand Up @@ -481,7 +481,7 @@ function renderLayout($content_for_layout, $layout = null) {
}

$this->_triggerHelpers('beforeLayout');
$this->output = $this->_render($layoutFileName, $data_for_layout, $loadHelpers);
$this->output = $this->_render($layoutFileName, $data_for_layout, $loadHelpers, true);

if ($this->output === false) {
$this->output = $this->_render($layoutFileName, $data_for_layout);
Expand Down
5 changes: 4 additions & 1 deletion cake/tests/cases/libs/view/view.test.php
Expand Up @@ -774,7 +774,10 @@ function testRenderCache() {
ob_start();
$View->renderCache($path, '+1 second');
$result = ob_get_clean();
$this->assertFalse(empty($result));

$expected = 'some cacheText';
$this->assertPattern('/^some cacheText/', $result);

@unlink($path);
}

Expand Down

0 comments on commit f1194a4

Please sign in to comment.