I currently have a problem with capybara when testing. When using the
selenium or webkit driver, it spins a new thread in which it runs the
process, separate from the main thread.

What this means that any objects that are created in this time are
left in the database when the test exits and I either have to manually
clean them up, or use something like the database_cleaner gem. The
problem with the database cleaner gem is that I get

PGError: ERROR:  cannot truncate a table referenced in a foreign key
constraint (Sequel::DatabaseError)

error when I try to clean the database.

So I guess the best solution is to make all threads use the same
transaction when testing or have a way to disable referential
integrity when the database is cleaned.

Could anyone help me out with this ?

Thanks in advanced.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to