Skip to content

Instantly share code, notes, and snippets.

@thedeeno
Created November 18, 2011 02:31
Show Gist options
  • Save thedeeno/1375393 to your computer and use it in GitHub Desktop.
Save thedeeno/1375393 to your computer and use it in GitHub Desktop.
Actual failing spec for duping
// spec/model.js
it("can be duplicated", function(){
var a = new Asset({name: "foo"});
a.save();
a.name = "bar";
b = Asset.find(a.id);
expect(a.name).toEqual("bar");
expect(b.name).toEqual("foo");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment