RSpec

Library providing tools for writing and running RSpec tests.

Module: RSpec::SleepingKingStudios::Concerns::WrapExamples

Parent Namespace
RSpec::SleepingKingStudios::Concerns
Defined In
lib/rspec/sleeping_king_studios/concerns/wrap_examples.rb

Table Of Contents

Overview

Methods for encapsulating shared example groups to include contexts or examples without affecting the surrounding context.

Back To Top

Instance Methods

#fwrap_examples name, *args, **kwargs, &block => Object

Also known as: fwrap_context

Includes the specified shared example group and wraps it inside a focused fdescribe block. If a block is provided, it is evaluated in the context of the fdescribe block after the example group has been included.

Parameters

Yields

#wrap_examples name, *args, **kwargs, &block => Object

Also known as: wrap_context

Includes the specified shared example group and wraps it inside a describe block. If a block is provided, it is evaluated in the context of the describe block after the example group has been included.

Parameters

Yields

#xwrap_examples name, *args, **kwargs, &block => Object

Also known as: xwrap_context

Includes the specified shared example group and wraps it inside a skipped xdescribe block. If a block is provided, it is evaluated in the context of the xdescribe block after the example group has been included. Mostly used to temporarily disable a wrapped example group while updating or debugging a spec.

Parameters

Yields

Back To Top


Back to Documentation | Versions | 2.8.1 | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Concerns