RSpec

Library providing tools for writing and running RSpec tests.

Module: RSpec::SleepingKingStudios::Deferred::Dsl::MemoizedHelpers

Parent Namespace
RSpec::SleepingKingStudios::Deferred::Dsl
Defined In
lib/rspec/sleeping_king_studios/deferred/dsl/memoized_helpers.rb

Table Of Contents

Overview

DSL for defining memoized helpers for deferred examples.

Back To Top

Class Methods

.extended(other) => Object

Callback invoked when the module is extended into another module or class.

Defines a HelperImplementations module on the module and includes it in the module.

Parameters

Back To Top

Instance Methods

#call(example_group) => void

Invokes the deferred examples on the given example group.

Parameters

Returns

#let(helper_name = nil, &block) => void

Defines a memoized helper.

Parameters

Returns

#let!(helper_name = nil, &block) => void

Defines a memoized helper and adds a hook to evaluate it before examples.

Parameters

Returns

#let?(helper_name, &block) => void

Defines an optional memoized helper.

The helper will use the parent value if defined; otherwise, will use the given value.

Parameters

Returns

#subject(helper_name = nil, &block) => void

Defines a memoized subject helper.

Parameters

Returns

#subject!(helper_name = nil, &block) => void

Defines a memoized subject helper and adds a hook to evaluate it.

Parameters

Returns

Back To Top


Back to Documentation | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Deferred | RSpec::SleepingKingStudios::Deferred::Dsl