Skip to content

Commit

Permalink
vcr_test_path() fix: look for 'tests' dir instead of DESCRIPTION
Browse files Browse the repository at this point in the history
- DESCRIPTION is not available for tests run by R CMD check, ropensci#235
  • Loading branch information
dpprdan committed May 24, 2021
1 parent e4f8237 commit 2881b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/vcr_test_path.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
vcr_test_path <- function(...) {
if (missing(...)) stop("Please provide a directory name.")
if (any(!nzchar(...))) stop("Please use non empty path elements.")
root <- rprojroot::is_r_package
root <- rprojroot::has_dir("tests")
path <- root$find_file("tests", ...)
if (!dir.exists(path)){
message("could not find ", path, "; creating it")
Expand Down

0 comments on commit 2881b58

Please sign in to comment.