[rspec-users] #describe behavior with a module

Gary Wright gwtmp01 at mac.com
Sun Feb 17 00:59:17 EST 2008

On Feb 16, 2008, at 6:10 PM, David Chelimsky wrote:
> That was done initially to support Rails helper specs. As it turns
> out, I usually wrap add a #helper method that returns self in those
> cases to make it explicit. So I'm not sure of it's value, but removing
> it (unfortunately) would probably break myriad specs out there.
> We should definitely improve the docs though.

It is quite odd.  Perhaps a flag and/or alternate method name to turn  
off that behavior?   In my case my module also extends the including  
module with class methods so it seems like a great way to get some  
pretty obscure name clashes.

Gary Wright

More information about the rspec-users mailing list