From 3e85577c1f77fad6edfe3a62ad419cfae1e07e26 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sat, 24 Apr 2010 10:42:19 -0700 Subject: [PATCH] Adding tests for dispatcher to show periods not being removed. Refs #620 --- cake/tests/cases/dispatcher.test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cake/tests/cases/dispatcher.test.php b/cake/tests/cases/dispatcher.test.php index 8be94da50..44a13b85f 100644 --- a/cake/tests/cases/dispatcher.test.php +++ b/cake/tests/cases/dispatcher.test.php @@ -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'); + } /**