Permalink
Browse files

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

  • Loading branch information...
1 parent ba19e0a commit ca32f0ffa2ce5f7f35d79cc7b6a2c421c3168c3c @markstory markstory committed Apr 24, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 cake/tests/cases/dispatcher.test.php
@@ -1296,6 +1296,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');
+
}
/**
* testDispatchWithArray method

0 comments on commit ca32f0f

Please sign in to comment.