mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Clean up which/which-support Cargo feature (#5019)
* Rename "which" feature to "which-support" * Ignore currently broken environment tests
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use nu_test_support::nu;
|
||||
|
||||
#[cfg(feature = "which")]
|
||||
#[cfg(feature = "which-support")]
|
||||
#[test]
|
||||
fn shows_error_for_command_not_found() {
|
||||
let actual = nu!(
|
||||
@ -11,7 +11,7 @@ fn shows_error_for_command_not_found() {
|
||||
assert!(!actual.err.is_empty());
|
||||
}
|
||||
|
||||
#[cfg(feature = "which")]
|
||||
#[cfg(feature = "which-support")]
|
||||
#[test]
|
||||
fn shows_error_for_command_not_found_in_pipeline() {
|
||||
let actual = nu!(
|
||||
@ -23,7 +23,7 @@ fn shows_error_for_command_not_found_in_pipeline() {
|
||||
}
|
||||
|
||||
#[ignore] // jt: we can't test this using the -c workaround currently
|
||||
#[cfg(feature = "which")]
|
||||
#[cfg(feature = "which-support")]
|
||||
#[test]
|
||||
fn automatically_change_directory() {
|
||||
use nu_test_support::playground::Playground;
|
||||
|
@ -647,7 +647,7 @@ fn run_dynamic_blocks() {
|
||||
assert_eq!(actual.out, "holaaaa");
|
||||
}
|
||||
|
||||
#[cfg(feature = "which")]
|
||||
#[cfg(feature = "which-support")]
|
||||
#[test]
|
||||
fn argument_subexpression_reports_errors() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user