On Dec 17, 2008, at 10:26 AM, Ingo Weiss wrote:

Hi all,

I am developing a rails plugin/gem with rspec. The plugin extends ActiveRecord, so the specs basically needs a complete environment with database access to run. What is a good way to set this up in a way that can be bundled with the plugin, maybe in the form of a stripped-down rails and a sqlite db?

Here's what I've used for FixtureReplacement in the past (which linoj generously contributed):

https://gist.github.com/3525b4cb43f0710a0ac0

Scott
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to