test_that("use_revdep() requires a package", { create_local_project() expect_usethis_error(use_revdep(), "not an R package") }) test_that("use_revdep() creates and ignores files/dirs", { create_local_package() use_revdep() expect_proj_file("revdep", ".gitignore") expect_true(is_build_ignored("^revdep$")) })