From fd99eb74b4f482850d8666677d0696e8e8b53023 Mon Sep 17 00:00:00 2001 From: Jon Harmon Date: Mon, 18 Sep 2023 16:34:14 -0500 Subject: [PATCH] Cleaner cleaners. --- _pkgdown.yml | 1 - tests/testthat/helper.R | 6 +++--- tests/testthat/test-use_beekeeper.R | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/_pkgdown.yml b/_pkgdown.yml index e155fe3..482bf9c 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -1,4 +1,3 @@ url: https://jonthegeek.github.io/beekeeper/ template: bootstrap: 5 - diff --git a/tests/testthat/helper.R b/tests/testthat/helper.R index 9d6aa55..37a906f 100644 --- a/tests/testthat/helper.R +++ b/tests/testthat/helper.R @@ -30,15 +30,15 @@ scrub_testpkg <- function(text) { scrub_updated <- function(input) { sub( "updated_on:.*$", - "updated_on: DATETIME\"", + "updated_on: DATETIME", input ) } scrub_rapid_file_location <- function(input) { sub( - "rapid_file: file.*$", - "rapid_file: RAPID_FILE_PATH\"", + "rapid_file: .*$", + "rapid_file: RAPID_FILE_PATH", input ) } diff --git a/tests/testthat/test-use_beekeeper.R b/tests/testthat/test-use_beekeeper.R index 3fda458..e5284c7 100644 --- a/tests/testthat/test-use_beekeeper.R +++ b/tests/testthat/test-use_beekeeper.R @@ -26,7 +26,6 @@ test_that("config writes a yml", { expected_result_file <- scrub_config( readLines(test_path("_fixtures", "guru_beekeeper.yml")) ) - expected_result_file[[4]] <- "rapid_file: RAPID_FILE_PATH\"" expect_identical( test_result_file, expected_result_file