Re: [rspec-users] Shoulda

2008-10-01 Thread Andy Freeman
I updated the gist posting. All of the macros should be functional now and have cleaned up describe blocks. http://gist.github.com/14050 Andy Freeman wrote: > It is a bit ugly but here is an initial port of the Shoulda ActiveRecord > macros: > > http://gist.github.com/14050 >

Re: [rspec-users] Shoulda

2008-10-01 Thread Andy Freeman
It is a bit ugly but here is an initial port of the Shoulda ActiveRecord macros: http://gist.github.com/14050 I did not try running ALL of the macros, but most of them. Before going too far with it, I would appreciate some recommendations as to how to improve the flow. The Shoulda version ha

Re: [rspec-users] Shoulda

2008-09-30 Thread Andy Freeman
I was actually teasing... :) As far as writing one... already on it! David Chelimsky wrote: > On Tue, Sep 30, 2008 at 10:18 PM, Andy Freeman <[EMAIL PROTECTED]> > wrote: >>> >>> Here's a variation on that with a helper for defining macros that I'm >

Re: [rspec-users] Shoulda

2008-09-30 Thread Andy Freeman
AM, Zach Dennis <[EMAIL PROTECTED]> > wrote: >>> On Tue, Sep 30, 2008 at 8:41 AM, Andy Freeman <[EMAIL PROTECTED]> wrote: >>>> Are you willing to provide a simple example? >>> >>> I'm using the same example as the articled you linked to ori

Re: [rspec-users] Shoulda

2008-09-30 Thread Andy Freeman
Are you willing to provide a simple example? Andy Matt Wynne wrote: > We do something similar to this, though we use a convention to set > @klass to the class being spec'd in the top-level example group, > rather than deriving it as they do in that sample. > > In view specs we also use a convent

[rspec-users] Shoulda

2008-09-30 Thread Andy Freeman
I just stumbled upon this link this morning where Shoulda makes it easy to automatically load custom macros. Is there a similar feature in RSpec? http://technicalpickles.com/posts/shoulda-can-automatically-load-custom-macros Andy -- Posted via http://www.ruby-forum.com/. ___