[rspec-users] RSpec - Testing ActiveRecord addins

James Byrne lists at ruby-forum.com
Thu Jan 29 18:37:56 EST 2009


Ben Mabey wrote:

> 
> You can then use the dummy AR classes in your specs with an in-memory 
> DB.
> 
> I hope that helps,
> 
> Ben

Oh, yes. very much. Especially this example.

> def setup_db
>   ActiveRecord::Schema.define(:version => 1) do

Have you, or anyone reading this, had any experience with the nulldb gem 
as an alternative to in memory sqlite3?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list