class EacRubyUtils::Rspec::SetupManager

def create(app_root_path, rspec_config = nil)

def create(app_root_path, rspec_config = nil)
  if rspec_config
    new(app_root_path, rspec_config)
  else
    ::RSpec.configure { |new_rspec_config| new(app_root_path, new_rspec_config) }
  end
end

def gems_registry

Returns:
  • (EacRubyUtils::GemsRegistry) -
def gems_registry
  @gems_registry ||= ::EacRubyUtils::GemsRegistry.new(GEMS_REGISTRY_SUFFIX)
end

def include_gem_registered(registered_module)

Parameters:
  • gem (EacRubyUtils::GemsRegistry::Gem) --
def include_gem_registered(registered_module)
  extend(registered_module)
end

def include_registry

def include_registry
  gems_registry.registered.each do |gem|
    include_gem_registered(gem.registered_module)
  end
end

def initialize(app_root_path, rspec_config)

def initialize(app_root_path, rspec_config)
  @app_root_path = app_root_path.to_pathname
  @rspec_config = rspec_config
  include_registry
end