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