Spectator::Node
Inherits Reference / Object
A single item in a test spec.
This is commonly an Example or ExampleGroup,
but can be anything that should be iterated over when running the spec.
Constants
Default text used if none was given by the user for skipping a node.
Constructors
Creates the node.
The name describes the purpose of the node.
It can be a Symbol to describe a type.
The location tracks where the node exists in source code.
A set of metadata can be used for filtering and modifying example behavior.
Instance methods
User-provided name or description of the node.
This does not include the group name or descriptions.
Use #to_s to get the full name.
This value will be nil if no name was provided. In this case, and the node is a runnable example, the name should be set to the description of the first matcher that runs in the test case.
If this value is a Symbol, the user specified a type for the name.
User-provided name or description of the node.
This does not include the group name or descriptions.
Use #to_s to get the full name.
This value will be nil if no name was provided. In this case, and the node is a runnable example, the name should be set to the description of the first matcher that runs in the test case.
If this value is a Symbol, the user specified a type for the name.
Checks if the node has been marked as pending. Pending items should be skipped during execution.
Constructs the full name or description of the node. This prepends names of groups this node is part of.