Add `xit` to DSL

This commit is contained in:
Michael Miller 2019-01-23 21:57:16 -07:00
parent e746ede287
commit 28c13cd175
1 changed files with 6 additions and 0 deletions

View File

@ -1403,6 +1403,12 @@ module Spectator::DSL
::Spectator::DSL::Builder.add_example(Example%example)
end
# Same as `#pending`.
# Include for compatibility with RSpec.
macro xit(what, &block)
pending({{what}}) {{block}}
end
# Creates a wrapper class for test code.
# The class serves multiple purposes, mostly dealing with scope.
# 1. Include the parent modules as mix-ins.