Skip to content

Commit c12b07c

Browse files
fix test
don't use pre-commit executable for testing call and capture since it is not available on CRAN
1 parent 6d4b33e commit c12b07c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repos:
1111
- id: deps-in-desc
1212
- id: style-files
1313
args: [--style_pkg=styler, --style_fun=tidyverse_style]
14+
exclude: '^tests/testthat/.*/*\.R'
1415
- id: roxygenize # spell-check needs up-to date doc.
1516
- id: spell-check
1617
exclude: >
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1 + 1
1+
1+1

tests/testthat/test-utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test_that("call capturing for error (command that does not exist)", {
4040
})
4141

4242
test_that("call capturing for error fo command that exists (but arguments that don't)", {
43-
expect_silent(captured <- call_precommit("hdif dijf"))
43+
expect_silent(captured <- call_and_capture("ls", "djdfjdoidj"))
4444
expect_true(
4545
captured$exit_status != 0
4646
)

0 commit comments

Comments
 (0)