Skip to content

Commit 9bc452a

Browse files
fix tests that ocurrs in interactive RStudio testing only ?!
1 parent 84dcff7 commit 9bc452a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testthat/test-hook-roxygenize.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ test_that("fails gratefully when not installed package is required according to
128128
suppressWarnings(
129129
roxygenize_with_cache(list(getwd()), dirs = dirs_R.cache("roxygenize"))
130130
),
131-
"The package .*required"
131+
"The package.*required"
132132
)
133133
})
134134

tests/testthat/test-setup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test_that("GitHub Action CI setup works", {
5252
root = getwd(),
5353
open = FALSE, verbose = FALSE
5454
)
55-
expect_error(use_ci("stuff"), "must be one of")
55+
expect_error(use_ci("stuff", root = getwd()), "must be one of")
5656
use_ci("gha", root = getwd())
5757
expect_true(file_exists(".github/workflows/pre-commit.yaml"))
5858
})

0 commit comments

Comments
 (0)