[rspec-users] before method
jeff at jefdean.com
Thu May 3 02:46:26 EDT 2007
Having custom before statements might reduce readability a bit - I would
argue that if you have many "it" statements that share a common setup, they
probably deserve a separate context (a different known state). The shared
context makes it possible to reduce duplication that might otherwise come
from splitting up contexts, and basically does the same thing as custom
before statements would do - only it keeps each context a little more atomic
On 5/3/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> On 5/3/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> > Would it be desirable to have before and after take a spec name as
> > well as :each and :all?
> What do YOU think?
> > Scott
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users