Permalink
Browse files

removing reg exp test.

  • Loading branch information...
1 parent e5aabc6 commit a2ed079af8f58b8b718369752286216c8e186e6c @jashkenas committed Apr 2, 2012
Showing with 0 additions and 15 deletions.
  1. +0 −15 test/router.js
View
@@ -48,7 +48,6 @@ $(document).ready(function() {
initialize : function(options) {
this.testing = options.testing;
- this.route(/(reg exp)/, 'regexp');
this.route('implicit', 'implicit');
},
@@ -94,14 +93,8 @@ $(document).ready(function() {
anything : function(whatever) {
this.anything = whatever;
- },
-
- regexp : function(regexp) {
- this.regexp = regexp;
}
- // do not provide a callback method for the noCallback route
-
});
test("Router: initialize", function() {
@@ -268,14 +261,6 @@ $(document).ready(function() {
equal(router.rest, 'has%20space');
});
- asyncTest("Router: route url with encoded character", function() {
- window.location.hash = 'reg exp';
- setTimeout(function() {
- equal(router.regexp, 'reg exp');
- start();
- }, 10);
- });
-
asyncTest("Router: correctly handles URLs with % (#868)", 3, function() {
window.location.hash = 'search/fat%3A1.5%25';
setTimeout(function() {

0 comments on commit a2ed079

Please sign in to comment.