tests/testthat/test-consent.R

test_that("init fails if no consent has been provided", {
  renv_tests_scope()
  renv_scope_options(renv.consent = FALSE)
  expect_error(init())
})
rstudio/renv documentation built on July 8, 2024, 5:48 a.m.