Skip to content

Commit

Permalink
Fix some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Apr 10, 2024
1 parent 1e2d1ef commit eaded89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/rc.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ guess_email <- function(path = ".", message = TRUE) {
wrap = TRUE,
"Using maintainer email address {.val {maint}}."
)
return(maint)
}
return(maint)
}

guess <- email_address()
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/rc.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
Code
guess_email(message = FALSE)
Output
[1] "csardi.gabor@gmail.com"
[1] "user@example.com"

---

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/helpers.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
http_app <- function(wd = getwd()) {
`%||%` <- function(l, r) if (is.null(l)) r else l
force(test_dir)
app <- webfakes::httpbin_app()

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-rc.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ test_that("rc_submit", {
})

# need to build if directory
withr::local_options(useFancyQuotes = FALSE)
tmp <- tempfile()
on.exit(unlink(tmp, recursive = TRUE), add = TRUE)
dir.create(tmp)
Expand Down

0 comments on commit eaded89

Please sign in to comment.