From 944061ceb759aa6916885487a8ed2a3b7f1402f9 Mon Sep 17 00:00:00 2001 From: Josh Cook Date: Sun, 18 Oct 2020 11:33:26 -0400 Subject: [PATCH] fix: don't use here in tests --- tests/testthat/test-use_here.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testthat/test-use_here.R b/tests/testthat/test-use_here.R index 75a5618..ce5dbe0 100644 --- a/tests/testthat/test-use_here.R +++ b/tests/testthat/test-use_here.R @@ -2,6 +2,8 @@ test_that("`stash()` uses the `here::here()` function", { expect_message(use_here(), "global option \"mustashe.here\" has been set `TRUE`") expect_silent(use_here(silent = TRUE)) expect_true(getOption("mustashe.here")) + + dont_use_here(silent = TRUE) }) @@ -9,4 +11,6 @@ test_that("`stash()` does not use the `here::here()` function", { expect_message(dont_use_here()) expect_silent(dont_use_here(silent = TRUE)) expect_false(getOption("mustashe.here")) + + dont_use_here(silent = TRUE) })