Forum: Ruby on Rails Trouble running Unit tests with sqlite3

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
076787da0775e1600ae30ea00f804809?d=identicon&s=25 Nexos (Guest)
on 2007-05-31 22:08
(Received via mailing list)

I'm using an sqlite3 database with Rails and have some trouble running
unit tests

I created some models/migrations in my dev DB, then ran a "rake
db:test:prepare" that correctly created the test database.

The problem is that, but when I want to run a (any) test, I get a "SQL
logic error or missing database (SQLite3::SQLException). I can however
access the DB via the sqlite3 client without any problem.

I'm using Rails 1.2.3 with ruby 1.8.5, sqlite3.3.7 and sqlite3-ruby
(1.2.1) Excerpt from my DB configuration (database.yml) : test:
adapter: sqlite3 database: db/myApp_test.sqlite3

Any help would be greatly appreciated!

Thanks in advance.

Frédéric Delanoy
This topic is locked and can not be replied to.