blob: 2b1be9022b0503aa36535d1a33bb3d86d3017f17 [file] [log] [blame]
use cargo_test_support::paths;
use cargo_test_support::prelude::*;
use std::fs;
use cargo_test_support::curr_dir;
#[cargo_test]
fn case() {
let foo = &paths::root().join("foo.bar");
fs::create_dir_all(foo).unwrap();
snapbox::cmd::Command::cargo_ui()
.arg_line("init")
.current_dir(foo)
.assert()
.code(101)
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));
assert!(!foo.join("Cargo.toml").is_file());
}