Skip to content

Commit d83280e

Browse files
committed
Skip if no git user is configured
1 parent 9b494ac commit d83280e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-edit.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ test_that("edit_file() copes with path to existing file", {
3838
## obligate me to some nerve-wracking clean up
3939

4040
test_that("edit_r_XXX() and edit_git_XXX() have default scope", {
41+
skip_if_no_git_user()
4142
## run these manually if you already have these files or are happy to
4243
## have them or delete them
4344
skip_if_not_ci()
@@ -98,6 +99,7 @@ test_that("edit_r_profile() respects R_PROFILE_USER", {
9899

99100

100101
test_that("edit_git_XXX('user') ensures the file exists", {
102+
skip_if_no_git_user()
101103
## run these manually if you already have these files or are happy to
102104
## have them or delete them
103105
skip_if_not_ci()

0 commit comments

Comments
 (0)