summaryrefslogtreecommitdiff
path: root/spec/mspec/lib/mspec/guards/quarantine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/lib/mspec/guards/quarantine.rb')
-rw-r--r--spec/mspec/lib/mspec/guards/quarantine.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/mspec/lib/mspec/guards/quarantine.rb b/spec/mspec/lib/mspec/guards/quarantine.rb
new file mode 100644
index 0000000000..4724613a0f
--- /dev/null
+++ b/spec/mspec/lib/mspec/guards/quarantine.rb
@@ -0,0 +1,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