Skip to content

Commit

Permalink
fix: don't use here in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrcook committed Oct 18, 2020
1 parent 08f816b commit 944061c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-use_here.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ 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)
})


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)
})

0 comments on commit 944061c

Please sign in to comment.