Re: [rspec-users] Parameterised shared examples / metadata in examples (RSpec 2)

2010-07-23 Thread Ashley Moran
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 } >

Re: [rspec-users] Parameterised shared examples / metadata in examples (RSpec 2)

2010-07-23 Thread Wincent Colaiuta
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)

[rspec-users] Parameterised shared examples / metadata in examples (RSpec 2)

2010-07-23 Thread Ashley Moran
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