mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 09:22:27 +02:00
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, AbsoluteFile, Stub::EmptyFile};
|
||||
use nu_test_support::nu;
|
||||
use nu_test_support::playground::Playground;
|
||||
use nu_test_support::{nu, nu_error};
|
||||
use std::path::Path;
|
||||
|
||||
#[test]
|
||||
@@ -34,13 +34,13 @@ fn copies_the_file_inside_directory_if_path_to_copy_is_directory() {
|
||||
#[test]
|
||||
fn error_if_attempting_to_copy_a_directory_to_another_directory() {
|
||||
Playground::setup("cp_test_3", |dirs, _| {
|
||||
let actual = nu_error!(
|
||||
let actual = nu!(
|
||||
cwd: dirs.formats(),
|
||||
"cp ../formats {}", dirs.test()
|
||||
);
|
||||
|
||||
assert!(actual.contains("../formats"));
|
||||
assert!(actual.contains("resolves to a directory (not copied)"));
|
||||
assert!(actual.err.contains("../formats"));
|
||||
assert!(actual.err.contains("resolves to a directory (not copied)"));
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user