Class: Virtuatable::Builders::Tests

Inherits:
Base
  • Object
show all
Includes:
Helpers::Tests
Defined in:
lib/virtuatable/builders/tests.rb

Overview

Builder used to declare an application from a spec/spec_helper file, loading everything a normal loader requires, then adding the files specialized in tests.

Author:

Instance Attribute Summary

Attributes inherited from Base

#directory, #mode, #name

Attributes included from Helpers::Loaders

#loaders

Attributes included from Helpers::Registration

#instance, #service

Instance Method Summary collapse

Methods included from Helpers::Tests

#load_tests!

Methods inherited from Base

#all_loaders, #check_variables!, #load!, #require_folders, #sanitized_ancestors, #type

Methods included from Helpers::Loaders

#declare_loader

Methods included from Helpers::Registration

#load_registration!

Methods included from Helpers::Mongoid

#load_mongoid!

Methods included from Helpers::Folders

#load_folders!

Methods included from Helpers::Environment

#load_environment!

Methods included from Helpers::Controllers

#controllers

Constructor Details

#initialize(path: '..', name:, locations: caller_locations) ⇒ Tests

Returns a new instance of Tests.



11
12
13
14
# File 'lib/virtuatable/builders/tests.rb', line 11

def initialize(path: '..', name:, locations: caller_locations)
  super(locations: locations, path: path, name: name)
  @mode = :test
end