default(example_group_class)
public
Sets the default
ExampleGroup class
Show source
def default(example_group_class)
Spec.__send__ :remove_const, :ExampleGroup if Spec.const_defined?(:ExampleGroup)
Spec.const_set(:ExampleGroup, example_group_class)
old = @example_group_types
@example_group_types = Hash.new(example_group_class)
@example_group_types.merge!(old) if old
end