Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy sometime fails... #164

Open
yangtheman opened this issue Apr 25, 2013 · 0 comments
Open

Destroy sometime fails... #164

yangtheman opened this issue Apr 25, 2013 · 0 comments

Comments

@yangtheman
Copy link

I have this really strange issue, and I was hoping someone can shed some light on how I can go about debugging it.

When I run my unit tests, the part when I delete a number of docs, but sometimes not all will be deleted.

doc = Klass.find("some_id")
doc.destroy
old_doc = Klass.find("some_id")
puts doc.destroyed?
puts old_doc.nil?

Most of times, I will get "true" and "true". But sometimes I get "true" and "false", meaning that the doc still exists in the CouchDB. When I go and check on the DB, and I can still see the doc.

What could be causing this kind of error? Is there anyway to completely delete the doc from the DB (instead of deleting just _id and _rev)? Or what can I try to resolve this problem?

Thanks....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant