Permalink
Browse files

Fix AuthComponent tests for windows newlines.

  • Loading branch information...
1 parent e41e89c commit 26d526f6240239094aa714b86093cd36fbb9a1f3 @predominant predominant committed Jun 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/tests/cases/libs/controller/components/auth.test.php
@@ -1456,7 +1456,7 @@ function testAjaxLogin() {
$Dispatcher =& new Dispatcher();
$Dispatcher->dispatch('/ajax_auth/add', array('return' => 1));
$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']);
}

0 comments on commit 26d526f

Please sign in to comment.