module RSpec::Mocks

def self.with_temporary_scope

mock usage in arbitrary places, such as a `before(:all)` hook.
Call the passed block and verify mocks after it has executed. This allows
def self.with_temporary_scope
  setup
  begin
    yield
    verify
  ensure
    teardown
  end
end