Skip to content
Browse files

Oops. Fix a destroy bug

  • Loading branch information...
1 parent 9ee3b6e commit f22e28bc1aeb6cfed4ba571e42f7089bbd21bcc4 @vesln vesln committed May 1, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 lib/seed-riak/store.js
  2. +4 −1 test/store.js
View
2 lib/seed-riak/store.js
@@ -144,7 +144,7 @@ var RiakStore = Seed.Store.extend({
return promise.promise;
}
- this.client.get(seed.collection, seed.data._id, function(err, data) {
+ this.client.remove(seed.collection, seed.data._id, function(err, data) {
if (err) return promise.reject(err);
promise.resolve(data);
});
View
5 test/store.js
@@ -38,7 +38,10 @@ describe('Seed RiakStore', function () {
it('should allow for removal', function (done) {
arthur.destroy(function (err) {
should.not.exist(err);
- done();
+ arthur.fetch(function (err) {
+ err.should.be.ok;
+ done();
+ });
});
});
});

0 comments on commit f22e28b

Please sign in to comment.
Something went wrong with that request. Please try again.