forked from extern/nushell
Pick->Select rename. Integration tests changes. (#1725)
Pick->Select rename. Integration tests changes.
This commit is contained in:
committed by
GitHub
parent
c3efdf2689
commit
96e5fc05a3
@@ -1,6 +1,6 @@
|
||||
use nu_test_support::fs::{files_exist_at, Stub::EmptyFile};
|
||||
use nu_test_support::nu;
|
||||
use nu_test_support::playground::Playground;
|
||||
use nu_test_support::{nu, nu_error};
|
||||
|
||||
#[test]
|
||||
fn moves_a_file() {
|
||||
@@ -223,11 +223,11 @@ fn moves_a_directory_with_files() {
|
||||
fn errors_if_source_doesnt_exist() {
|
||||
Playground::setup("mv_test_10", |dirs, sandbox| {
|
||||
sandbox.mkdir("test_folder");
|
||||
let actual = nu_error!(
|
||||
let actual = nu!(
|
||||
cwd: dirs.root(),
|
||||
"mv non-existing-file test_folder/"
|
||||
);
|
||||
assert!(actual.contains("Invalid file or pattern"));
|
||||
assert!(actual.err.contains("Invalid file or pattern"));
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user