[rspec-users] WDYT, simple, anonymous story listeners?
zach.dennis at gmail.com
Wed Aug 13 10:50:24 EDT 2008
On Wed, Aug 13, 2008 at 8:29 AM, aslak hellesoy
<aslak.hellesoy at gmail.com> wrote:
> On Wed, Aug 13, 2008 at 2:25 AM, Zach Dennis <zach.dennis at gmail.com> wrote:
>> Sometimes I don't have a full need to make a class to do something,
>> yet I want something readable and concise. This is influenced from the
>> Today I made this happen. Love it, like it, hate it, WDYT?
> As mentioned earlier on the RSpec development list, we're considering
> replacing the Story runner with a new implementation:
> I'd rather see a similar construct for Cucumber, which already is
> (IMHO) much better than the Story Runner.
> Before(:all) do
> After(:all) do
> (per-scenarion Before/After is already implemented).
When you say "rather see a similar construct" -- are you referring to
having the Before(:all) and After(:all) capability that you posted, or
something similar to what I posted with using a FuncionalStruct as an
argument to register a listener on the existing StoryRunner (a
clear/concise way to hook-in with those one off listeners) ?
More information about the rspec-users