Skip to content

Commit

Permalink
Move test to the shared file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Kosenkov committed Nov 19, 2023
1 parent 1729306 commit 1ad6581
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/test-use_extendr.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,12 @@ test_that("Message if the SystemRequirements field is already set.", {
expect_true(created)
expect_equal(desc::desc_get("SystemRequirements")[[1]], sys_req)
})

test_that("`use_extendr()` works correctly when path is specified explicitly", {
skip_if_not_installed("usethis")
local_temp_dir("temp_dir")
usethis::create_package("testpkg")

use_extendr(path = "testpkg")
succeed()
})
8 changes: 0 additions & 8 deletions tests/testthat/test-use_extendr_with_path.R

This file was deleted.

0 comments on commit 1ad6581

Please sign in to comment.