[rspec-users] Blog post on building an around(:all) hook using fibers
myron.marston at gmail.com
Fri Mar 9 15:39:35 UTC 2012
RSpec provides an around(:each) hook but no around(:all) hook. I realized
recently that you can build an around hook out of separate before/after
hooks using fibers, and decided to blog about it , using an around(:all)
hook as the example. Some of you may find it interesting or even
potentially useful. There's a microgem available as a gist  as well.
Note that I'll probably never use this gem and the :all hooks may be going
away at some point , so use at your own risk. It's more of a
proof-of-concept and a fun exercise than anything else.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users