summaryrefslogtreecommitdiffstats
path: root/src/poem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/poem.rs')
-rw-r--r--src/poem.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poem.rs b/src/poem.rs
index c0e7d6b..db51d16 100644
--- a/src/poem.rs
+++ b/src/poem.rs
@@ -270,14 +270,14 @@ mod tests {
let poetry = "cd ~".to_string();
let poem = Poem::read(poetry).unwrap();
assert_eq!(poem[0].verb(), "cd");
- assert_eq!(poem[0].clause(), Some(vec!["/home/rory".to_string()]));
+ assert_eq!(poem[0].clause(), Some(vec![env!("HOME").to_string()]));
let poetry = "cd ~/Code/dwarvish".to_string();
let poem = Poem::read(poetry).unwrap();
assert_eq!(poem[0].verb(), "cd");
assert_eq!(
poem[0].clause(),
- Some(vec!["/home/rory/Code/dwarvish".to_string()])
+ Some(vec![format!("{}/Code/dwarvish", env!("HOME")).to_string()])
);
assert_eq!(poem[0].meter, Rune::None);
}