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