class Mocha::Configuration

def temporarily_change_config(action, new_value)

Other tags:
    Private: -
def temporarily_change_config(action, new_value)
  original_configuration = configuration
  new_configuration = configuration.dup
  new_configuration.send("#{action}=".to_sym, new_value)
  @configuration = new_configuration
  yield
ensure
  @configuration = original_configuration
end