mirror of
https://github.com/casey/just.git
synced 2024-11-25 07:06:23 +03:00
30 lines
384 B
Rust
30 lines
384 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn export_recipe() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
export foo='bar':
|
|
echo {{foo}}
|
|
",
|
|
)
|
|
.stdout("bar\n")
|
|
.stderr("echo bar\n")
|
|
.run();
|
|
}
|
|
|
|
#[test]
|
|
fn alias_recipe() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
alias foo='bar':
|
|
echo {{foo}}
|
|
",
|
|
)
|
|
.stdout("bar\n")
|
|
.stderr("echo bar\n")
|
|
.run();
|
|
}
|