Trouble running Unit tests with sqlite3


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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs