Adding tests for dispatcher to show periods not being removed. Refs #620

This commit is contained in:
Mark Story 2010-04-24 10:42:19 -07:00
parent 5f03862f25
commit 3e85577c1f

View file

@ -1366,6 +1366,11 @@ class DispatcherTest extends CakeTestCase {
$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');
}
/**