Module: RSpec::SleepingKingStudios::Deferred::Dsl::SharedExamples
- Parent Namespace
- RSpec::SleepingKingStudios::Deferred::Dsl
- Extended Modules
- RSpec::SleepingKingStudios::Deferred::Dsl::SharedExamples::Macros
- Defined In
- lib/rspec/sleeping_king_studios/deferred/dsl/shared_examples.rb
Table Of Contents
Overview
Methods for defining and including deferred shared example groups.
Back To Top
Defined Under Namespace
- Modules
- Macros
Back To Top
Class Methods
.define_included_examples_method(method_name) => void
- Inherited From
- RSpec::SleepingKingStudios::Deferred::Dsl::SharedExamples::Macros
Registers a method for deferring including a shared example group.
Parameters
- method_name (String, Symbol) — the name of the deferred method.
Returns
.define_shared_examples_method(method_name) => void
- Inherited From
- RSpec::SleepingKingStudios::Deferred::Dsl::SharedExamples::Macros
Registers a method for deferring a shared example group.
Parameters
- method_name (String, Symbol) — the name of the deferred method.
Returns
Back To Top
Instance Methods
#finclude_examples(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the finclude_examples method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#fwrap_context(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the fwrap_context method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#fwrap_examples(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the fwrap_examples method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#include_context(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the include_context method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#include_examples(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the include_examples method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#it_behaves_like(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the it_behaves_like method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#it_should_behave_like(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the it_should_behave_like method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#shared_context(name, *flags, **metadata, &block) => void
Defines a deferred shared example group using the shared_context method.
Parameters
- name (String, Symbol, Module) — the name for the shared example
group.
- flags (Array<Symbol>) — metadata flags for the shared example
group.
- metadata (Hash) — metadata for the shared example group.
- block (Proc) — the implementation of the shared example group.
Returns
#shared_examples(name, *flags, **metadata, &block) => void
Defines a deferred shared example group using the shared_examples method.
Parameters
- name (String, Symbol, Module) — the name for the shared example
group.
- flags (Array<Symbol>) — metadata flags for the shared example
group.
- metadata (Hash) — metadata for the shared example group.
- block (Proc) — the implementation of the shared example group.
Returns
#shared_examples_for(name, *flags, **metadata, &block) => void
Defines a deferred shared example group using the shared_examples_for method.
Parameters
- name (String, Symbol, Module) — the name for the shared example
group.
- flags (Array<Symbol>) — metadata flags for the shared example
group.
- metadata (Hash) — metadata for the shared example group.
- block (Proc) — the implementation of the shared example group.
Returns
#wrap_context(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the wrap_context method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#wrap_examples(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the wrap_examples method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#xinclude_examples(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the xinclude_examples method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#xwrap_context(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the xwrap_context method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
#xwrap_examples(name, *flags, **metadata, &block) => void
Defines a deferred included example group using the xwrap_examples method.
Parameters
- name (String, Symbol, Module) — the name for the included example
group.
- flags (Array<Symbol>) — metadata flags for the included example
group.
- metadata (Hash) — metadata for the included example group.
- block (Proc) — the implementation of the included example group.
Returns
Back To Top
Back to
Documentation |
Versions |
2.8 |
Reference
|
RSpec
|
RSpec::SleepingKingStudios
|
RSpec::SleepingKingStudios::Deferred
|
RSpec::SleepingKingStudios::Deferred::Dsl