# Don't know how to test yesno message after use_docute test_that("use_docute creates the right files", { create_local_package() use_docute(path = getwd()) expect_true(fs::file_exists("docs/index.html")) expect_true(fs::file_exists("docs/README.md")) expect_true(fs::file_exists("docs/reference.md")) }) test_that("use_docute: arg 'overwrite' works", { create_local_package() use_docute(path = getwd()) fs::file_create("docs/test") use_docute(overwrite = TRUE, path = getwd()) expect_false(fs::file_exists("docs/test")) })