module ActiveMocker
Constants
- UNREPRESENTABLE_CONST_VALUE
- VERSION
Public Class Methods
configure(&block)
click to toggle source
Override default Configurations
ActiveMocker.configure do |c| c.model_dir= # Directory of ActiveRecord models c.mock_dir= # Directory to save mocks c.single_model_path= # Path to generate a single mock c.progress_bar= # False disables progress bar from sending to STDOUT or pass a class that takes a count in the initializer and responds to #increment. c.error_verbosity= # 0 = none # 1 = Summary of failures # 2 = One line per error # 3 = Errors with exception backtrace c.disable_modules_and_constants= # Modules are include/extend along with constant declarations. # Default is false, to disable set to true. end
@returns self @yield [Config]
# File lib/active_mocker/public_methods.rb, line 22 def configure(&block) Config.set(&block) self end
Also aliased as: config
create_mocks()
click to toggle source
Generates Mocks file @returns self
# File lib/active_mocker/public_methods.rb, line 30 def create_mocks Generate.new.call self end