spec/site_config_spec.rb
# Make sure that cached site config values don't affect these or the
# next tests
Make sure that cached site config values don't affect these or the
next tests
Make sure that cached site config values don ' t affect these or the next tests
def clear_site_config
    Origen.site_config.instance_variable_set('@configs', Array.new)
    ENV['ORIGEN_GEM_INSTALL_DIR'] = nil
    ENV['ORIGEN_USER_GEM_DIR'] = nil
    ENV['ORIGEN_HOME_DIR'] = nil
    ENV['ORIGEN_USER_INSTALL_DIR'] = nil
  end
def clear_site_config Origen . site_config . instance_variable_set ( '@configs' , Array . new ) ENV [ 'ORIGEN_GEM_INSTALL_DIR' ] = nil ENV [ 'ORIGEN_USER_GEM_DIR' ] = nil ENV [ 'ORIGEN_HOME_DIR' ] = nil ENV [ 'ORIGEN_USER_INSTALL_DIR' ] = nil end
Make sure that cached site config values don't affect these or the
next tests
Make sure that cached site config values don ' t affect these or the next tests
# Reset the site config # Also, reset the relevant environment variables