diff --git a/src/expand.rs b/src/expand.rs index df21652..348e990 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -229,7 +229,7 @@ fn prepare(tests: &[ExpandedTest]) -> Result { } fs::create_dir_all(path!(project.dir / ".cargo"))?; - fs::write(path!(project.dir / ".cargo" / "config"), config_toml)?; + fs::write(path!(project.dir / ".cargo" / "config.toml"), config_toml)?; fs::write(path!(project.dir / "Cargo.toml"), manifest_toml)?; fs::write(path!(project.dir / "main.rs"), b"fn main() {}\n")?; diff --git a/src/path.rs b/src/path.rs index 9fdf47c..05ee0c1 100644 --- a/src/path.rs +++ b/src/path.rs @@ -41,6 +41,6 @@ fn test_path_macro() { dir: PathBuf::from("../target/tests"), }; - let cargo_dir = path!(project.dir / ".cargo" / "config"); - assert_eq!(cargo_dir, Path::new("../target/tests/.cargo/config")); + let cargo_dir = path!(project.dir / ".cargo" / "config.toml"); + assert_eq!(cargo_dir, Path::new("../target/tests/.cargo/config.toml")); }