diff --git a/tests/testthat/test-data_write.R b/tests/testthat/test-data_write.R index 0463c16ae..dd57c6e8c 100644 --- a/tests/testthat/test-data_write.R +++ b/tests/testthat/test-data_write.R @@ -146,5 +146,5 @@ test_that("data_write, existing variable label but missing value labels", { ) d$a <- assign_labels(d$a, variable = "First") # expect message, but no error - expect_message(data_write(d, "test.sav"), regex = "Preparing") + expect_message(data_write(d, tmp), regex = "Preparing") })