Class Spec::Example::ExampleGroupProxy
In: lib/spec/example/example_group_proxy.rb
Parent: Object

Lightweight representation of an example group. This is the object that is passed to Spec::Runner::Formatter::BaseFormatter#add_example_group

Methods

Attributes

description  [R]  This is the docstring passed to the describe() method or any of its aliases
examples  [R]  A collection of ExampleGroupProxy instances, one for each example declared in this group.
location  [R]  The file and line number at which the represented example group was declared. This is extracted from caller, and is therefore formatted as an individual line in a backtrace.
nested_descriptions  [R]  Used by Spec::Runner::Formatter::NestedTextFormatter to access the docstrings for each example group in a nested group.

Public Instance methods

Deprecated - use location() instead

Returns the nested_descriptions collection with any descriptions matching the submitted regexp removed.

[Validate]