1 2 3 4 5 6 7 8 9 10 11
require 'mspec/guards/guard' class QuarantineGuard < SpecGuard def match? true end end def quarantine!(&block) QuarantineGuard.new.run_unless(:quarantine!, &block) end