Skip to content

Commit

Permalink
fixed trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
syntacticx committed Feb 12, 2009
1 parent 2c52d67 commit b35022b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/active_routes/matching.js
Expand Up @@ -33,7 +33,7 @@ ActiveTest.Tests.Routes.matching = function(proceed)
var routes_without_params = new ActiveRoutes([
['index','/home',{object: 'page',method: 'index'}],
['contact','pages/contact',{object: 'page', method: 'index'}],
['/pages/about/',{object: 'page',method: 'about'}],
['/pages/about/',{object: 'page',method: 'about'}]
],test_scope);

assert(routes_without_params.match('/home').name == 'index','match() /home');
Expand All @@ -53,7 +53,7 @@ ActiveTest.Tests.Routes.matching = function(proceed)
//test index handling
var routes_without_params = new ActiveRoutes([
['index','pages',{object: 'page',method: 'index'}],
['contact','pages/contact',{object: 'page', method: 'index'}],
['contact','pages/contact',{object: 'page', method: 'index'}]
],test_scope);

assert(routes_without_params.match('pages').name == 'index','index match() pages');
Expand All @@ -63,7 +63,7 @@ ActiveTest.Tests.Routes.matching = function(proceed)

var routes_without_params = new ActiveRoutes([
['index','pages/index',{object: 'page',method: 'index'}],
['contact','pages/contact',{object: 'page', method: 'index'}],
['contact','pages/contact',{object: 'page', method: 'index'}]
],test_scope);

assert(routes_without_params.match('pages').name == 'index','index match() pages');
Expand All @@ -75,7 +75,6 @@ ActiveTest.Tests.Routes.matching = function(proceed)
var routes = new ActiveRoutes(test_valid_route_set,test_scope);

var match;

match = routes.match('/blog/post/5');
assert(match.name == 'post' && match.params.id == 5 && match.params.method == 'post','complex match() /blog/post/5');

Expand Down

0 comments on commit b35022b

Please sign in to comment.