On Jul 23, 2010, at 8:57 am, Wincent Colaiuta wrote:
> Recently commited (RSpec 2.0.0.beta.18) was the ability to pass a block to
> "it_should_behave_like", making the relation clearer; eg:
>
> describe MyStruct do
>it_should_behave_like 'a Struct' do
> let(:struct) { MyStruct.new }
>
El 23/07/2010, a las 09:09, Ashley Moran escribió:
> I'm looking for the best way to parameterise shared examples. Imagine (as an
> academic example...) you were doing it for subclasses of Struct instances (a
> more realistic example might be ActiveRecord subclasses, or DataMapper
> resources)
Hi
Warning: this goes on quite a bit. It contains early-morning caffeinated
ramblings and many "hmmm I wonder what this does..." snippets.
I'm looking for the best way to parameterise shared examples. Imagine (as an
academic example...) you were doing it for subclasses of Struct instances (a