Method: RSpec::Core::ExampleGroup.include_examples

Defined in:
lib/rspec/core/example_group.rb

.include_examples(name, *args, &block) ⇒ void

Includes shared content mapped to name directly in the group in which it is declared, as opposed to it_behaves_like, which creates a nested group. If given a block, that block is also eval'd in the current context.

See Also:


353
354
355
# File 'lib/rspec/core/example_group.rb', line 353

def self.include_examples(name, *args, &block)
  find_and_eval_shared("examples", name, caller.first, *args, &block)
end