Method: RSpec::Core::ExampleGroup.context
- Defined in:
- lib/rspec/core/example_group.rb
.context ⇒ RSpec::Core::ExampleGroup .context(&example_group_definition) ⇒ RSpec::Core::ExampleGroup .context(doc_string, *metadata, &example_implementation) ⇒ RSpec::Core::ExampleGroup
An alias of example_group. Generally used when grouping examples
contextually (e.g. "with xyz", "when xyz" or "if xyz").
Generates a subclass of this example group which inherits
everything except the examples themselves.
292 |
# File 'lib/rspec/core/example_group.rb', line 292 define_example_group_method :context |