[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

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),

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 } end

[rspec-users] Check out my shelves

2010-07-23 Thread Varchar
Hi rspec, Check out the books I added on Goodreads. http://www.goodreads.com/friend/i?n=rspec userse=rspec-us...@rubyforge.orgi=LTM2MDMwNTExMjM6MzY1 - Varchar (charlesmbow...@gmail.com) Goodreads is a community for book lovers. It's a great way to get book recommendations