Docs for RootExampleGroup

This commit is contained in:
Michael Miller 2018-11-23 23:54:54 -07:00
parent b414438627
commit bd8df38ecd

View file

@ -1,11 +1,17 @@
require "./example_group"
module Spectator
# Top-most group of examples and sub-groups.
# The root has no parent.
class RootExampleGroup < ExampleGroup
# Dummy value - this should never be used.
def what : String
"ROOT"
end
# Does nothing.
# This prevents the root group
# from showing up in output.
def to_s(io)
# ...
end