Scott Taylor
2007-Feb-21 21:52 UTC
[rspec-users] Using rspec_on_rails without a test database
Is there some way to remove the database hit when running rake rspec:models ? I''d like to mock all of my objects (or at least remove all reliance on fixtures and the database itself) - both for speed and because static fixtures are brittle. Best Regards, Scott Taylor
Scott Taylor
2007-Feb-21 22:37 UTC
[rspec-users] Using rspec_on_rails without a test database
I think my solution may be to use the drb server to speed up tests. Does anyone know who maintains the spec:autotest plugin? I''d be interested in contributing a patch to use drb instead of the typical spec task. Best Regards, Scott
David Chelimsky
2007-Feb-22 00:47 UTC
[rspec-users] Using rspec_on_rails without a test database
On 2/21/07, Scott Taylor <sataylor at sjca.edu> wrote:> > I think my solution may be to use the drb server to speed up tests. > > Does anyone know who maintains the spec:autotest plugin? I''d be > interested in contributing a patch to use drb instead of the typical > spec task.Try Nick Sieger: http://blog.nicksieger.com/articles/tag/autotest. Cheers, David> > Best Regards, > > Scott > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
David Chelimsky
2007-Feb-22 00:55 UTC
[rspec-users] Using rspec_on_rails without a test database
On 2/21/07, Scott Taylor <scotttaylor at bigfoot.com> wrote:> > Is there some way to remove the database hit when running rake > rspec:models ?There''s not yet, but you''re not the first to ask: http://rubyforge.org/tracker/index.php?func=detail&aid=6523&group_id=797&atid=3152 It''s something that we''ll add sooner or later. In the mean time, there is some writing about how to test Rails w/o a database using the tools that ship w/ Rails that might help you. Check out Chad Fowler''s book, Rails Recipes, and also Jay Field''s blog: http://jayfields.blogspot.com/. Hope that helps. Cheers, David> I''d like to mock all of my objects (or at least > remove all reliance on fixtures and the database itself) - both for > speed and because static fixtures are brittle. > > Best Regards, > > Scott Taylor > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >