nushell/tests/command_cd_tests.rs

11 lines
275 B
Rust
Raw Normal View History

2019-08-06 09:05:47 +02:00
mod helpers;
use helpers::in_directory as cwd;
#[test]
fn cd_directory_not_found() {
nu_error!(output, cwd("tests/fixtures"), "cd dir_that_does_not_exist");
2019-08-06 09:05:47 +02:00
assert!(output.contains("dir_that_does_not_exist"));
assert!(output.contains("directory not found"));
}