Skip to content

Commit 83a6b5f

Browse files
committed
Add a test
Relates to #2007
1 parent b4af034 commit 83a6b5f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/testthat/_snaps/tibble.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# use_tibble() Imports tibble
1+
# use_tibble() Imports tibble and imports tibble::tibble()
22

33
Code
44
use_tibble()

tests/testthat/test-tibble.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ test_that("use_tibble() requires a package", {
33
expect_usethis_error(use_tibble(), "not an R package")
44
})
55

6-
test_that("use_tibble() Imports tibble", {
6+
test_that("use_tibble() Imports tibble and imports tibble::tibble()", {
77
create_local_package()
88

99
withr::local_options(list(usethis.quiet = FALSE))
@@ -18,4 +18,7 @@ test_that("use_tibble() Imports tibble", {
1818
)
1919

2020
expect_match(proj_desc()$get("Imports"), "tibble")
21+
22+
pkg_doc <- readLines(package_doc_path())
23+
expect_match(pkg_doc, "#' @importFrom tibble tibble", all = FALSE)
2124
})

0 commit comments

Comments
 (0)