[rspec-users] shared behav
mailing_lists at railsnewbie.com
Tue Dec 18 16:53:49 EST 2007
On Dec 18, 2007, at 4:42 PM, David Chelimsky wrote:
> On Dec 18, 2007 3:37 PM, Scott Taylor
> <mailing_lists at railsnewbie.com> wrote:
>> shared behaviours can be thought of modules which are included
>> into the
>> current behaviour - so it should also have access to any methods
>> defined in
>> the example (group) in which it is shared.
> You don't even have to think of it that way - that's actually what
> they are - modules that get included. You can actually assign them to
> a constant and just use Ruby include.
Although we've talked about the implementation changing, which would
cause those who use them as modules to have broken specs.
More information about the rspec-users