small tweak to collection template
This commit is contained in:
parent
2d6a3b81c9
commit
05ff5d3def
|
@ -1,4 +1,4 @@
|
|||
var <%= plural_object_name %> = Backbone.Collection.extend({
|
||||
url: '/<%= underscore_name %>',
|
||||
url: '/<%= plural_underscore_name %>',
|
||||
model: <%= object_name %>
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue