Permalink
Browse files

Use original URI after destroy

  • Loading branch information...
1 parent 4021cb7 commit 5d7d3eebd99660e868fbde8819ad506b26d5048a @jcrosby committed May 12, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/test.js
View
@@ -126,12 +126,13 @@ test('destroy', function() {
success: function() {
store.collection('things').create({name:"box", color:"red"}, {
success: function(resource) {
+ var original_uri = resource.uri();
resource.destroy({
success: function() {
ok(0 == store.collection('things').all().length, "The destroy method should remove the object");
var result = $.ajax({
type: 'GET',
- url: resource.uri(),
+ url: original_uri,
async: false
});
ok(410 == result.status, "The destroy method should remove the remote resource");

0 comments on commit 5d7d3ee

Please sign in to comment.