method

create_example_group_subclass

rspec latest stable - Class: Spec::Example::ExampleGroupMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

create_example_group_subclass(*args, &example_group_block)
public

Creates a new subclass of self, with a name "under" our own name. Example:

  x = Foo::Bar.subclass('Zap'){}
  x.name # => Foo::Bar::Zap_1
  x.superclass.name # => Foo::Bar