small tweak to collection template

This commit is contained in:
John Bintz 2011-04-18 11:48:07 -04:00
parent 2d6a3b81c9
commit 05ff5d3def
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
var <%= plural_object_name %> = Backbone.Collection.extend({
url: '/<%= underscore_name %>',
url: '/<%= plural_underscore_name %>',
model: <%= object_name %>
});

View File

@ -6,7 +6,7 @@ describe('<%= plural_object_name %>', function() {
it('should fetch records from the API', function() {
collection = new <%= plural_object_name %>();
this.server.respondWith('GET', '<%= plural_underscore_name %>', this.validJSONResponse([{id: 1}]));
this.server.respondWith('GET', '/<%= plural_underscore_name %>', this.validJSONResponse([{id: 1}]));
collection.fetch()
this.server.respond();