From 7e0adb0bfcb55323bfa444882b4f005ff7274459 Mon Sep 17 00:00:00 2001 From: Andrei Martins <92amartins@gmail.com> Date: Wed, 24 Apr 2024 20:12:51 -0300 Subject: [PATCH] Update ggally_cor_v1_5 test --- DESCRIPTION | 3 +-- tests/testthat/test-deprecated.R | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 8a84f972..5b259721 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -69,8 +69,7 @@ Suggests: knitr, spelling, emmeans, - vdiffr, - withr (>= 3.0.0) + vdiffr Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.1 SystemRequirements: openssl diff --git a/tests/testthat/test-deprecated.R b/tests/testthat/test-deprecated.R index 0a6d0adf..7b48a5ac 100644 --- a/tests/testthat/test-deprecated.R +++ b/tests/testthat/test-deprecated.R @@ -1,9 +1,10 @@ data(tips) test_that("ggally_cor_v1_5() works", { - withr::local_options(lifecycle_verbosity = "quiet") - expect_silent( - p <- ggally_cor_v1_5(tips, ggplot2::aes(!!as.name("total_bill"), !!as.name("tip"))) + lifecycle::expect_deprecated( + { + p <- ggally_cor_v1_5(tips, ggplot2::aes(!!as.name("total_bill"), !!as.name("tip"))) + } ) })