forked from r-lib/pkgdown
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't build Github issue and pull request templates (r-lib#2362)
Fixes r-lib#2358 Co-authored-by: Hadley Wickham <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
test_that("can find files in root and .github", { | ||
dir <- withr::local_tempdir() | ||
dir_create(path(dir, ".github")) | ||
file_create(path(dir, "a.md")) | ||
file_create(path(dir, ".github", "b.md")) | ||
|
||
mds <- withr::with_dir(dir, package_mds(".")) | ||
expect_equal(mds, c("a.md", "./.github/b.md")) | ||
}) | ||
|
||
test_that("drops files handled elsewhere", { | ||
dir <- withr::local_tempdir() | ||
dir_create(path(dir, ".github")) | ||
file_create(path(dir, c("README.md", "LICENSE.md", "NEWS.md"))) | ||
|
||
expect_equal(withr::with_dir(dir, package_mds(".")), character()) | ||
}) | ||
|
||
test_that("drops files that don't need to be rendered", { | ||
dir <- withr::local_tempdir() | ||
dir_create(path(dir, ".github")) | ||
file_create(path(dir, c("cran-comments.md", "issue_template.md"))) | ||
|
||
expect_equal(withr::with_dir(dir, package_mds(".")), character()) | ||
}) | ||
|
||
|
||
|