Skip to content

Commit

Permalink
Fixing DS for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed Aug 6, 2009
1 parent 8d351d9 commit ff04c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/db_config.test.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function startTest() {
$this->Task->Dispatch =& $this->Dispatcher; $this->Task->Dispatch =& $this->Dispatcher;
$this->Task->Dispatch->shellPaths = App::path('shells'); $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'; $this->Task->databaseClassName = 'TEST_DATABASE_CONFIG';
} }


Expand Down
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/tasks/fixture.test.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ function endTest() {
* @return void * @return void
**/ **/
function testConstruct() { function testConstruct() {
$this->Dispatch->params['working'] = '/my/path'; $this->Dispatch->params['working'] = DS . 'my' . DS . 'path';
$Task =& new FixtureTask($this->Dispatch); $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); $this->assertEqual($Task->path, $expected);
} }


Expand Down

0 comments on commit ff04c76

Please sign in to comment.