]>
Commit | Line | Data |
---|---|---|
0a29b90c FG |
1 | use cargo_test_support::compare::assert_ui; |
2 | use cargo_test_support::prelude::*; | |
3 | use cargo_test_support::Project; | |
4 | ||
5 | use cargo_test_support::curr_dir; | |
6 | ||
7 | #[cargo_test] | |
8 | fn case() { | |
9 | let project = Project::from_template(curr_dir!().join("in")); | |
10 | let project_root = &project.root(); | |
11 | ||
12 | snapbox::cmd::Command::cargo_ui() | |
13 | .arg_line("init --vcs none") | |
14 | .current_dir(project_root) | |
15 | .assert() | |
16 | .success() | |
17 | .stdout_matches_path(curr_dir!().join("stdout.log")) | |
18 | .stderr_matches_path(curr_dir!().join("stderr.log")); | |
19 | ||
20 | assert_ui().subset_matches(curr_dir!().join("out"), project_root); | |
21 | assert!(!project_root.join("src").is_dir()); | |
22 | } |