Fixing DS for Windows

This commit is contained in:
renan.saddam 2009-08-06 15:59:47 -03:00
parent 8d351d90b3
commit ff04c7668a
2 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ class DbConfigTaskTest extends CakeTestCase {
$this->Task->Dispatch =& $this->Dispatcher;
$this->Task->Dispatch->shellPaths = App::path('shells');
$this->Task->params['working'] = rtrim(APP, '/');
$this->Task->params['working'] = rtrim(APP, DS);
$this->Task->databaseClassName = 'TEST_DATABASE_CONFIG';
}

View file

@ -96,10 +96,10 @@ class FixtureTaskTest extends CakeTestCase {
* @return void
**/
function testConstruct() {
$this->Dispatch->params['working'] = '/my/path';
$this->Dispatch->params['working'] = DS . 'my' . DS . 'path';
$Task =& new FixtureTask($this->Dispatch);
$expected = '/my/path/tests/fixtures/';
$expected = DS . 'my' . DS . 'path' . DS . 'tests' . DS . 'fixtures' . DS;
$this->assertEqual($Task->path, $expected);
}