nushell/crates/nu-cli/tests/commands/with_env.rs

12 lines
232 B
Rust
Raw Normal View History

2020-05-06 05:56:31 +02:00
use nu_test_support::nu;
#[test]
fn with_env_extends_environment() {
let actual = nu!(
cwd: "tests/fixtures/formats",
"with-env [FOO BARRRR] {echo $nu.env} | get FOO"
);
assert_eq!(actual, "BARRRR");
}