9 10 11 12
# File 'lib/adhearsion/component_manager/spec_framework.rb', line 9 def mock_component_config_with(new_config) Object.send(:remove_const, :COMPONENTS) rescue nil Object.send(:const_set, :COMPONENTS, OpenStruct.new(new_config)) end