[rspec-users] Evaluating shared example customisation block before shared block
ashley.moran at patchspace.co.uk
Sat Jul 31 03:56:03 EDT 2010
On 31 Jul 2010, at 1:10 AM, David Chelimsky wrote:
> You can still get the same outcome, but you have to implement it in the group like this:
> unless defined?(:foo)
> def foo; "foo"; end
Maybe a DSL method while I'm working on it? Maybe:
> I think it's a good trade-off to put that burden on the group (and it's author) rather that the consumers of the group.
Agreed, it'd cause a lot of duplication of effort the other way round.
More information about the rspec-users