[rspec-devel] [ rspec-Feature Requests-13532 ] /lib specs should get base EvalContext

Jay Levitt lists-rspec at shopwatch.org
Sun Sep 2 16:23:56 EDT 2007


On 8/30/2007 11:46 PM, David Chelimsky wrote:
> On 8/30/07, Jay Levitt <lists-rspec at shopwatch.org> wrote:
>>> I set this up a bit differently - there was already a RailsBehaviour which is the base for ModelBehaviour, ViewBehaviour, ControllerBehaviour and HelperBehaviour. I made it so that is the default for ANY directory outside models, views, controllers, and helpers. It has mock_model, add_stubs and general fixtures support.
>>>
>>> Right now, ModelBehaviour simply derives from RailsBehaviour but doesn't add anything additional. It seems like it wants to be deprecated, but that's a topic for another thread.
>> That sounds great.  I don't think ModelBehaviour needs deprecation; it
>> seems obvious that someone will need to create it in the future, so
>> might as well keep it for symmetry.  rspec_on_rails is early days even
>> compared to rspec!
>>
>> That said, I noticed FunctionalBehaviour still kicking around; isn't
>> that deprecated?
> 
> Nope. That's the base class for ControllerBehaviour, ViewBehaviour and
> HelperBehaviour.

Sigh.  I think Eclipse's search doesn't like me sometimes.

Jay



More information about the rspec-devel mailing list