[rspec-users] Specs for ApplicationController, where to put them?

David Chelimsky dchelimsky at gmail.com
Wed May 30 18:51:00 EDT 2007


On 5/30/07, Wincent Colaiuta <win at wincent.com> wrote:
> El 30/5/2007, a las 23:11, David Chelimsky escribió:
>
> > I think you're spot on about all of this. I'm thinking that a simple
> > solution would be that each time a shared behaviour is registered, the
> > location of its definition can be registered as well. Then we can
> > ignore the ones defined in the same place when a file gets reloaded,
> > but still complain when another one is defined with the same name from
> > a different location.
> >
> > WDYT?
>
> Would be great -- it would basically capture the intent of your
> current implementation -- but how would you get the location of its
> definition?

By inspecting caller. We do this already in building up the backtrace.
I'll pursue this soon.

Cheers,
David

>
> Cheers,
> Wincent
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list