[rspec-users] before method

David Chelimsky dchelimsky at gmail.com
Thu May 3 07:23:40 EDT 2007


On 5/3/07, Jeff Dean <jeff at jefdean.com> wrote:
> 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
> - IMO

Scott - I would agree w/ Jeff here, but I am interested to know what
you had in my mind.

>
>
> 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
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list