Module: Alchemy::TestSupport
- Defined in:
- lib/alchemy/test_support.rb,
lib/alchemy/test_support/config_stubbing.rb,
lib/alchemy/test_support/integration_helpers.rb
Defined Under Namespace
Modules: ConfigStubbing, IntegrationHelpers
Class Method Summary
collapse
Class Method Details
.factories_path ⇒ Object
13
14
15
|
# File 'lib/alchemy/test_support.rb', line 13
def factories_path
::Alchemy::Engine.root.join("lib", "alchemy", "test_support", "factories")
end
|
.factory_paths ⇒ Object
6
7
8
9
10
|
# File 'lib/alchemy/test_support.rb', line 6
def factory_paths
Dir[
::Alchemy::Engine.root.join("lib", "alchemy", "test_support", "factories", "*_factory.rb")
].map { |path| path.sub(/.rb\z/, "") }
end
|