[rspec-users] RSpec - Testing ActiveRecord addins
ben at benmabey.com
Fri Jan 30 01:25:18 EST 2009
Pat Nakajima wrote:
> (Sorry if this is double-posted, I was having trouble with joining the
> 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.
Very slick. I'll be using this next time. :)
> On Jan 29, 10:18 pm, Ben Mabey <b... at benmabey.com> wrote:
>> James Byrne wrote:
>>> Ben Mabey wrote:
>>>> You can then use the dummy AR classes in your specs with an in-memory
>>>> I hope that helps,
>>> 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.
>> rspec-users mailing list
>> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users