Skip to content

Commit

Permalink
add test for rextendr_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jan 5, 2023
1 parent bb92539 commit 1d03e47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-use_extendr.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,11 @@ test_that("R/ folder is created when not present", {
# expect no error
expect_error(use_extendr(), regexp = NA)
})

test_that("Warn if using older rextendr", {
path <- local_package("futurepkg")
use_extendr()
desc::desc_set(`Config/rextendr/version` = "999.999")

expect_message(document(), "Installed rextendr is older than the version used with this package")
})

0 comments on commit 1d03e47

Please sign in to comment.