diaspora/spec/javascripts/app/collections/comments_collection_spec.js
danielgrippi 3bc3f13651 upgrade backbone, fix tests
some cukes may be failing non deterministically, I think, do we bump the cuke timeout?
2012-04-03 16:31:52 -07:00

10 lines
315 B
JavaScript

describe("app.collections.comments", function(){
describe("url", function(){
it("should user the post id", function(){
var post =new app.models.Post({id : 5})
var collection = new app.collections.Comments([], {post : post})
expect(collection.url()).toBe("/posts/5/comments")
})
})
})