diff --git a/tests/testthat/test-renaming.R b/tests/testthat/test-renaming.R index 612c33a7..6cb7d79e 100644 --- a/tests/testthat/test-renaming.R +++ b/tests/testthat/test-renaming.R @@ -1,13 +1,11 @@ test_that("renaming columns", { # should warn the user - expect_warning( - { - out <- correlation(anscombe, - select = c("x1", "x2"), - rename = c("var1") - ) - } - ) + expect_warning({ + out <- correlation(anscombe, + select = c("x1", "x2"), + rename = "var1" + ) + }) expect_snapshot(print(out)) expect_snapshot(correlation(anscombe,