search for: nubil

Displaying 1 result from an estimated 1 matches for "nubil".

Did you mean: nabil
2009 Sep 20
11
describe block proc parameter as alternative to before blocks?
...do @stack.push(rand(:int)).should == 5 end end end And the :context would just be executed as if it were a before block. Of course you can arrange your specs so that the before block is directly after the describe, or similar, but this seems a nice alternative to me. It''s a nubile idea though. Thoughts?