deferred_examples'should be a Rocket'doit{expect(subject).tobe_aRocket}end
Defining Parameterized Examples
deferred_examples'should be a Vehicle'do|expected_type:|it{expect(subject).tobe_aVehicle}it{expect(subject.tyoe).tobe==expected_type}end
Parameters
description (String) — the name of the deferred examples.
Yields
(*arguments, **keywords, &block) — the definition for the deferred
examples. Supports the same DSL as an RSpec::Core::ExampleGroup. If
the block takes parameters, these can be used to customize the
behavior of the deferred examples when they are included in an example
group.
Yield Parameters
arguments (Array) — arguments passed to the deferred examples.
keywords (Hash) — keywords passed to the deferred examples.
block (Block) — a block passed to the deferred examples.