Skip to content

Commit

Permalink
Fix AuthComponent tests for windows newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Jun 6, 2010
1 parent e41e89c commit 26d526f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/controller/components/auth.test.php
Expand Up @@ -1456,7 +1456,7 @@ function testAjaxLogin() {
$Dispatcher =& new Dispatcher(); $Dispatcher =& new Dispatcher();
$Dispatcher->dispatch('/ajax_auth/add', array('return' => 1)); $Dispatcher->dispatch('/ajax_auth/add', array('return' => 1));
$result = ob_get_clean(); $result = ob_get_clean();
$this->assertEqual("Ajax!\nthis is the test element", $result); $this->assertEqual("Ajax!\nthis is the test element", str_replace("\r\n", "\n", $result));
unset($_SERVER['HTTP_X_REQUESTED_WITH']); unset($_SERVER['HTTP_X_REQUESTED_WITH']);
} }


Expand Down

0 comments on commit 26d526f

Please sign in to comment.