message: Add a test reproducing the issue
diff: //! Tests for config settings.
  +use cargo::core::profiles::Strip;
  use cargo::core::{enable_nightly_features, Shell};
  use cargo::util::config::{self, Config, SslVersionConfig, StringList};
  use cargo::util::interning::InternedString;
  @@ -1259,3 +1260,19 @@ fn string_list_advanced_env() {
  "error in environment variable `CARGO_KEY3`: expected string, found integer",
  );
  }
  +
  +#[cargo_test]
  +fn parse_enum() {
  + write_config(
  + "\
  +[profile.release]
  +strip = 'debuginfo'
  +",
  + );
  +
  + let config = new_config();
  +
  + let p: toml::TomlProfile = config.get("profile.release").unwrap();
  + let strip = p.strip.unwrap();
  + assert_eq!(strip, Strip::DebugInfo);
  +}
  