I was having trouble with tests about 4 days ago. At first I had a problem with "database is locked" and the file where DatabaseCleaner
is configured; I changed two lines that used :transaction
to :truncation
and solved the problem. However, another came up:
ActiveRecord :: RecordNotUnique: SQLite3 :: ConstraintException: UNIQUE constraint failed:
What can it be?