tests/testthat/test-git.R

test_that("git status works", {
  skip_on_cran()
  wd <- local_temp_git_repo()
  result <- git("status", wd = wd)
  expect_true(grepl("No commits yet", result, fixed = TRUE))
})
randy3k/cliff documentation built on Dec. 22, 2021, 12:55 p.m.