[rspec-users] Evaluating shared example customisation block before shared block
Ashley Moran
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
> end
Maybe a DSL method while I'm working on it? Maybe:
default_helper(:foo) do
"foo"
end
WDYT?
> 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.
--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
More information about the rspec-users
mailing list