[rspec-users] shared behav
dchelimsky at gmail.com
Tue Dec 18 16:42:36 EST 2007
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.
More information about the rspec-users