Class: Virtuatable::Builders::Tests

Inherits:
Base
  • Object
show all
Includes:
Helpers::Tests, Specs::Factories::Accounts, Specs::Factories::Applications, Specs::Factories::Groups, Specs::Factories::Sessions, Specs::Shared::Controllers
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

#service

Instance Method Summary collapse

Methods included from Specs::Shared::Controllers

#load_controller_specs!

Methods included from Specs::Factories::Sessions

#load_sessions_factory!

Methods included from Specs::Factories::Groups

#load_groups_factory!

Methods included from Specs::Factories::Applications

#load_applications_factory!

Methods included from Specs::Factories::Accounts

#load_accounts_factory!

Methods included from Helpers::Tests

#load_tests!

Methods inherited from Base

#all_loaders, #load!, #require_folders, #sanitized_ancestors

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

#env_file, #load_environment!

Methods included from Helpers::Controllers

#controllers

Constructor Details

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

Returns a new instance of Tests.



16
17
18
19
# File 'lib/virtuatable/builders/tests.rb', line 16

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