Parent

Class Index [+]

Quicksearch

Spec::Example::ExampleGroupProxy

Lightweight proxy for an example group. This is the object that is passed to Spec::Runner::Formatter::BaseFormatter#example_group_started

Attributes

options[R]

Optional hash passed to the example group declaration. Note that RSpec uses this hash internally and reserves the keys :location and :scope for its own use (and removes them from this hash)

description[R]

This is the description passed to the describe() method or any of its aliases

nested_descriptions[R]

Used by Spec::Runner::Formatter::NestedTextFormatter to access the description of each example group in a nested group separately.

examples[R]

A collection of ExampleGroupProxy objects, one for each example declared in this group.

location[R]

The file and line number at which the proxied example group was declared. This is extracted from caller, and is therefore formatted as an individual line in a backtrace.

Public Instance Methods

backtrace() click to toggle source

Deprecated - use location() instead

    # File lib/spec/example/example_group_proxy.rb, line 41
41:       def backtrace
42:         Spec::deprecate("ExampleGroupProxy#backtrace","ExampleGroupProxy#location")
43:         @backtrace
44:       end
filtered_description(regexp) click to toggle source

Deprecated - just use gsub on the description instead.

    # File lib/spec/example/example_group_proxy.rb, line 47
47:       def filtered_description(regexp)
48:         Spec::deprecate("ExampleGroupProxy#filtered_description","gsub (or similar) to modify ExampleGroupProxy#description")
49:         ExampleGroupMethods.build_description_from(
50:           *nested_descriptions.collect do |description|
51:             description =~ regexp ? description.gsub($1, "") : description
52:           end
53:         )
54:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.