Module: RSpec::SleepingKingStudios::Deferred::Dsl::ExampleGroups
- Parent Namespace
- RSpec::SleepingKingStudios::Deferred::Dsl
- Extended Modules
- RSpec::SleepingKingStudios::Deferred::Dsl::ExampleGroups::Macros
- Defined In
- lib/rspec/sleeping_king_studios/deferred/dsl/example_groups.rb
Table Of Contents
Overview
Methods for defining deferred example groups.
Back To Top
Defined Under Namespace
- Modules
- Macros
Back To Top
Class Methods
.define_example_group_method(method_name) => void
- Inherited From
- RSpec::SleepingKingStudios::Deferred::Dsl::ExampleGroups::Macros
Registers a method for deferring an example group.
Parameters
- method_name (String, Symbol) — the name of the deferred method.
Returns
Back To Top
Instance Methods
#context(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the context method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
#describe(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the describe method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
#example_group(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the example_group method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
#fcontext(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the fcontext method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
#fdescribe(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the fdescribe method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
#xcontext(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the xcontext method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
#xdescribe(doc_string = nil, *flags, **metadata, &block) => void
Defines a deferred example group using the xdescribe method.
Parameters
- doc_string (String) — the example group's doc string.
- flags (Array<Symbol>) — metadata flags for the example group.
Will be transformed into metadata entries with true values.
- metadata (Hash) — metadata for the example group.
- block (Proc) — the implementation of the example group.
Returns
Back To Top
Back to
Documentation |
Versions |
2.8 |
Reference
|
RSpec
|
RSpec::SleepingKingStudios
|
RSpec::SleepingKingStudios::Deferred
|
RSpec::SleepingKingStudios::Deferred::Dsl