module RSpecAroundAll
Public Instance Methods
around(scope = :each, &block)
click to toggle source
Calls superclass method
# File lib/rspec_around_all.rb, line 15 def around(scope = :each, &block) # let RSpec handle around(:each) hooks... return super(scope, &block) unless scope == :all group, fiber = self, nil before(:all) do fiber = Fiber.new(&block) fiber.resume(FiberAwareGroup.new(group)) end after(:all) do fiber.resume end end