module RSpec::Core::SharedExampleGroup
def share_as(name, &block)
def share_as(name, &block) RSpec.deprecate("Rspec::Core::SharedExampleGroup#share_as", "RSpec::SharedContext or shared_examples") Registry.add_const(name, &block) end
def shared_examples *args, &block
- See: ExampleGroup.include_context -
See: ExampleGroup.include_examples -
See: ExampleGroup.it_behaves_like -
Parameters:
-
block
() -- to be eval'd in a nested example group generated by `it_behaves_like`
-
name
(String
) -- to match when looking up this shared group
Overloads:
-
shared_examples(name, tags, &block)
-
shared_examples(name, &block)
def shared_examples *args, &block Registry.add_group(*args, &block) end