Skip to content

Commit

Permalink
Merge pull request jashkenas#3435 from braddunbar/search-test
Browse files Browse the repository at this point in the history
Ensure a search test fails when appropriate.
  • Loading branch information
akre54 committed Jan 5, 2015
2 parents f752362 + 7af3329 commit d52ed12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,12 @@
var Router = Backbone.Router.extend({
routes: {
path: function(params){
strictEqual(params, 'x=y z');
strictEqual(params, 'x=y%3Fz');
}
}
});
var router = new Router;
Backbone.history.navigate('path?x=y%20z', true);
Backbone.history.navigate('path?x=y%3Fz', true);
});

test('Navigate to a hash url.', function() {
Expand Down

0 comments on commit d52ed12

Please sign in to comment.