0
I was having trouble with tests about 4 days ago. At first, I had trouble with "database is locked" and in the file where the DatabaseCleaner
is configured; changed two lines they used :transaction
for :truncation
and solved the problem. However, another:
Activerecord::Recordnotunique: Sqlite3::Constraintexception: UNIQUE Constraint failed:
What can it be?
I will test this code today and give you feedback. Thank you!
– João Victor Valentim