Module: ComponentConfigurationSpecHelper

Defined in:
lib/adhearsion/component_manager/spec_framework.rb

Instance Method Summary collapse

Instance Method Details

#mock_component_config_with(new_config) ⇒ Object



15
16
17
18
# File 'lib/adhearsion/component_manager/spec_framework.rb', line 15

def mock_component_config_with(new_config)
  Object.send(:remove_const, :COMPONENTS) rescue nil
  Object.send(:const_set, :COMPONENTS, OpenStruct.new(new_config))
end