Skip to content

Commit

Permalink
Change directory name in test_merged_config test (rust-lang#4409)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrachev committed Sep 3, 2020
1 parent 3eab675 commit 4e72871
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ ignore = []
// this test requires nightly
None | Some("nightly") => {
let _outer_config = make_temp_file(
"a/rustfmt.toml",
"fmt_test_merged_config/rustfmt.toml",
r#"
tab_spaces = 2
fn_call_width = 50
Expand All @@ -656,7 +656,7 @@ ignore = ["b/main.rs", "util.rs"]
);

let inner_config = make_temp_file(
"a/b/rustfmt.toml",
"fmt_test_merged_config/b/rustfmt.toml",
r#"
version = "two"
tab_spaces = 3
Expand All @@ -672,8 +672,8 @@ ignore = []
assert_eq!(config.ignore().to_string(), r#"["main.rs"]"#);

let paths = paths.unwrap();
assert!(paths[0].ends_with("a/rustfmt.toml"));
assert!(paths[1].ends_with("a/b/rustfmt.toml"));
assert!(paths[0].ends_with("fmt_test_merged_config/rustfmt.toml"));
assert!(paths[1].ends_with("fmt_test_merged_config/b/rustfmt.toml"));
}
_ => {}
};
Expand Down

0 comments on commit 4e72871

Please sign in to comment.