We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afadf50 commit ae967eeCopy full SHA for ae967ee
tests/testthat/test-site.R
@@ -1,9 +1,9 @@
1
test_that("find_book_proj() correction found the root dir", {
2
- book_dir <- local_book()
+ book_dir <- xfun::normalize_path(local_book())
3
withr::local_dir(book_dir)
4
- expect_equal(normalizePath(find_book_proj(".")), book_dir)
5
- expect_equal(normalizePath(find_book_proj("01-Introduction.Rmd")), book_dir)
+ expect_equal(find_book_proj("."), book_dir)
+ expect_equal(find_book_proj("01-Introduction.Rmd"), book_dir)
6
gsub("^(site:.*)$", "\\1 # any comment", xfun::read_utf8("index.Rmd"))
7
xfun::gsub_file("index.Rmd", pattern = "^(site:.*)$", replacement = "\\1 # any comment")
8
9
})
0 commit comments