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 29, 2010
1 parent 0800483 commit e725ae1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cake/tests/cases/dispatcher.test.php
Expand Up @@ -1325,6 +1325,11 @@ public 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 e725ae1

Please sign in to comment.