diff --git a/DESCRIPTION b/DESCRIPTION index 2186725..1612133 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -26,7 +26,7 @@ Suggests: spelling, knitr, rmarkdown, - testthat, + testthat (>= 3.0.0), roxygen2 VignetteBuilder: knitr @@ -35,3 +35,4 @@ Roxygen: list(markdown = TRUE) SystemRequirements: libgit2 (>= 1.0): libgit2-devel (rpm) or libgit2-dev (deb) Language: en-US Config/roxygen2/version: 8.0.0 +Config/testthat/edition: 3 diff --git a/tests/testthat/test-commit.R b/tests/testthat/test-commit.R index 9e53733..5e075a9 100644 --- a/tests/testthat/test-commit.R +++ b/tests/testthat/test-commit.R @@ -58,7 +58,10 @@ test_that("creating a commit", { # Inspect the log file log <- git_log(repo = repo) expect_equal(log$author[2], local_author(repo)) - expect_equal(log$time[1], timestamp) + expect_equal( + format(log$time[1], format = "%Y-%m-%d %H:%M:%S %Z"), + format(timestamp, format = "%Y-%m-%d %H:%M:%S %Z") + ) }) test_that("Passing ref into git_ls gives correct info", {