Module Spec::Example::ExampleGroupFactory::ClassMethods
In: lib/spec/example/example_group_factory.rb

Methods

Included Modules

Spec::Example::ArgsAndOptions

Public Instance methods

Registers an example group class klass with the symbol type. For example:

  Spec::Example::ExampleGroupFactory.register(:farm, FarmExampleGroup)

With that you can append a hash with :type => :farm to the describe method and it will load an instance of FarmExampleGroup.

  describe Pig, :type => :farm do
    ...

If you don‘t use the hash explicitly, describe will implicitly use an instance of FarmExampleGroup for any file loaded from the ./spec/farm directory.

Protected Instance methods

[Validate]