mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 03:44:19 +01:00
12 lines
281 B
Rust
12 lines
281 B
Rust
mod helpers;
|
|
|
|
use helpers::in_directory as cwd;
|
|
|
|
#[test]
|
|
fn cd_directory_not_found() {
|
|
let actual = nu_error!(cwd("tests/fixtures"), "cd dir_that_does_not_exist");
|
|
|
|
assert!(actual.contains("dir_that_does_not_exist"));
|
|
assert!(actual.contains("directory not found"));
|
|
}
|