Skip to content

Instantly share code, notes, and snippets.

@mjansen401
Created November 13, 2011 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjansen401/1362586 to your computer and use it in GitHub Desktop.
Save mjansen401/1362586 to your computer and use it in GitHub Desktop.
Todos Spec 2
describe("Todos Collection", function () {
beforeEach(function () {
this.todos = new Todo.collections.Todos();
});
it("uses the Todo model", function () {
expect(this.todos.model).toEqual(Todo.models.Todo);
});
it("url is 'todos'", function () {
expect(this.todos.url)toEqual("todos");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment