2008-01-05

rspec_on_rails sqlite3 error

I started a new project last night, and decided to use rspec_on_rails. I was following some examples from Luke Redpath's blog entry and got the following error:


SQLite3::SQLException in 'A player should be invalid without a user_id'
SQL logic error or missing database


I eventually tracked down an email from David Chelimsky on rspec-users that explained this could be fixed by setting config.use_transactional_fixtures = false in
spec/spec_helper.rb.

Anyway, posting it here to make it easier to google for.

No comments:

Creative Commons License

This work is licensed under a Creative Commons License.
Copyright 2007-2010, Joseph P. Block, Some Rights Reserved.

Creative Commons Logo