Permalink
Browse files

Fix Model validation bake tests for Windows.

  • Loading branch information...
1 parent 26d526f commit d803b303886d569cff16bf975567b3d909e6a780 @predominant predominant committed Jun 6, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/tests/cases/console/libs/tasks/model.test.php
@@ -647,8 +647,9 @@ function testBakeValidation() {
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
STRINGEND;
-
- $this->assertPattern('/' . preg_quote($expected, '/') . '/', $result);
+debug($expected);
+debug($result);
+ $this->assertPattern('/' . preg_quote(str_replace("\r\n", "\n", $expected), '/') . '/', $result);
}
/**

0 comments on commit d803b30

Please sign in to comment.