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
x.superclass.name
# File lib/spec/example/example_group_methods.rb, line 94
def create_example_group_subclass(*args, &example_group_block) # :nodoc:
@class_count ||= 0
@class_count += 1
klass = const_set("Subclass_#{@class_count}", Class.new(self))
klass.set_description(*args)
example_group_block = ExampleGroupFactory.include_constants_in(args.last[:scope], &example_group_block)
klass.module_eval(&example_group_block)
klass
end