method

registered_or_ancestor_of_registered?

rspec latest stable - Class: Spec::Example::ExampleGroupFactory::ClassMethods

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.

registered_or_ancestor_of_registered?(example_group_classes)
public

No documentation available.

# File lib/spec/example/example_group_factory.rb, line 10
        def registered_or_ancestor_of_registered?(example_group_classes) # :nodoc:
          example_group_classes.each do |example_group_class|
            return false unless registered_types.any? do |registered_type|
              registered_type.ancestors.include? example_group_class
            end
          end
          return true
        end