Re: [rspec-users] Factoring out code that creates specs

2008-09-16 Thread Matt Wynne
On 16 Sep 2008, at 14:28, David Chelimsky wrote: Hi Matt, On Mon, Sep 15, 2008 at 12:28 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: It's all gone a bit meta. I've started noticing patterns in my specs, where I want more than one class to satisfy a specific bunch of behaviours. I know I can

Re: [rspec-users] Factoring out code that creates specs

2008-09-16 Thread David Chelimsky
Hi Matt, On Mon, Sep 15, 2008 at 12:28 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: > It's all gone a bit meta. > I've started noticing patterns in my specs, where I want more than one class > to satisfy a specific bunch of behaviours. > I know I can use it_should_behave_like and this works in simple

[rspec-users] Factoring out code that creates specs

2008-09-15 Thread Matt Wynne
It's all gone a bit meta. I've started noticing patterns in my specs, where I want more than one class to satisfy a specific bunch of behaviours. I know I can use it_should_behave_like and this works in simple cases, but I want to be able to iterate around an array of values and generate