(Sorry if this is double-posted, I was having trouble with joining the list)
If you want an easy way to test ActiveRecord extensions, check out acts_as_fu: http://github.com/nakajima/acts_as_fu. It makes generating ActiveRecord models dead simple. Pat On Jan 29, 10:18 pm, Ben Mabey <b...@benmabey.com> wrote: > James Byrne wrote: > > 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? > > I used nulldb on my last project and I had a lot of success with it. > Using nulldb comes with tradeoffs though and in this case I would just > use sqlite. Unless the project and spec suite is large disconnecting > the DB may not be worth the effort. > > -Ben > _______________________________________________ > rspec-users mailing list > rspec-us...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users