diff --git a/tests/testthat/test-stash.R b/tests/testthat/test-stash.R index da9fda5..723d330 100644 --- a/tests/testthat/test-stash.R +++ b/tests/testthat/test-stash.R @@ -1,5 +1,7 @@ test_that("stashing works", { - target_dir <- ".mustashe" + target_dir <- get_stash_dir() + stash_filename("x") + dont_use_here(silent = TRUE) expect_error(stash(NULL, NULL), "`var` cannot be NULL") expect_error(stash("a", NULL), "`code` cannot be NULL")