summaryrefslogtreecommitdiff
path: root/helix-term/tests/integration/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/tests/integration/commands.rs')
-rw-r--r--helix-term/tests/integration/commands.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/tests/integration/commands.rs b/helix-term/tests/integration/commands.rs
index 0d2e14fd..1ff7cc90 100644
--- a/helix-term/tests/integration/commands.rs
+++ b/helix-term/tests/integration/commands.rs
@@ -10,10 +10,12 @@ use super::*;
#[tokio::test]
async fn test_write_quit_fail() -> anyhow::Result<()> {
+ let file = helpers::new_readonly_tempfile()?;
+
test_key_sequence(
&mut Application::new(
Args {
- files: vec![(PathBuf::from("/foo"), Position::default())],
+ files: vec![(file.path().to_path_buf(), Position::default())],
..Default::default()
},
Config::default(),