Skip to content

Commit

Permalink
Adding tests for dispatcher to show periods not being removed. Refs #620
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 24, 2010
1 parent 5f03862 commit 3e85577
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cake/tests/cases/dispatcher.test.php
Expand Up @@ -1366,6 +1366,11 @@ function testDispatch() {
$url = 'test_dispatch_pages/camelCased';
$controller = $Dispatcher->dispatch($url, array('return' => 1));
$this->assertEqual('TestDispatchPages', $controller->name);

$url = 'test_dispatch_pages/camelCased/something. .';
$controller = $Dispatcher->dispatch($url, array('return' => 1));
$this->assertEqual($controller->params['pass'][0], 'something. .', 'Period was chopped off. %s');

}

/**
Expand Down

0 comments on commit 3e85577

Please sign in to comment.