diff options
author | Marcel Müller <neikos@neikos.email> | 2023-04-29 12:40:56 +0200 |
---|---|---|
committer | Marcel Müller <neikos@neikos.email> | 2023-04-29 12:49:23 +0200 |
commit | d2edda63b18801a0cd4514c001cacdd1d0b2f10a (patch) | |
tree | e5b57532df06db1766760403b880a751c75b8098 | |
parent | ff035f876813f7190e83f2532f164dddb4884467 (diff) |
Make non-hidden config file the default
Signed-off-by: Marcel Müller <neikos@neikos.email>
-rw-r--r-- | src/main.rs | 2 | ||||
-rw-r--r-- | tests/init_command.rs | 2 | ||||
-rw-r--r-- | tests/new_command.rs | 2 | ||||
-rw-r--r-- | tests/new_command_creates_default_header.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 0b27a63..5e618c5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,7 +118,7 @@ fn init(repo_workdir_path: PathBuf) -> miette::Result<()> { .create(true) .append(false) .write(true) - .open(repo_workdir_path.join(crate::config::CONFIG_FILE_NAMES[0])) + .open(repo_workdir_path.join(crate::config::CONFIG_FILE_NAMES[1])) .map_err(Error::from) .into_diagnostic()?; diff --git a/tests/init_command.rs b/tests/init_command.rs index c827321..843caaf 100644 --- a/tests/init_command.rs +++ b/tests/init_command.rs @@ -9,7 +9,7 @@ fn init_command_creates_config_file() { self::common::init_git(temp_dir.path()); self::common::init_cargo_changelog(temp_dir.path()); - let config_file_path = temp_dir.path().join(".changelog.toml"); + let config_file_path = temp_dir.path().join("changelog.toml"); if !config_file_path.exists() { panic!("Config file does not exist after `cargo-changelog init`"); } diff --git a/tests/new_command.rs b/tests/new_command.rs index 702e9de..fb32a43 100644 --- a/tests/new_command.rs +++ b/tests/new_command.rs @@ -292,7 +292,7 @@ fn new_command_cannot_create_nonexistent_oneof() { { // Write some header field to the config file - let config_file_path = temp_dir.path().join(".changelog.toml"); + let config_file_path = temp_dir.path().join("changelog.toml"); let mut file = std::fs::OpenOptions::new() .append(true) .write(true) diff --git a/tests/new_command_creates_default_header.rs b/tests/new_command_creates_default_header.rs index c14bcb0..577df7c 100644 --- a/tests/new_command_creates_default_header.rs +++ b/tests/new_command_creates_default_header.rs @@ -13,7 +13,7 @@ fn new_command_creates_default_header() { { // Write some header field to the config file - let config_file_path = temp_dir.path().join(".changelog.toml"); + let config_file_path = temp_dir.path().join("changelog.toml"); let mut file = std::fs::OpenOptions::new() .append(true) .write(true) |