tests/testthat/test-use_issue_template.R

test_that("use_issue_template works", {
  
  path <- use_issue_template(save_dir=tempdir())
  testthat::expect_true(all(file.exists(path)))
  
  out <- testthat::capture_output_lines(
    path2 <- use_issue_template(save_dir=tempdir(),
                               force_new = FALSE,
                               show = TRUE)
  )
  testthat::expect_true(all(file.exists(path2)))
  testthat::expect_equal("name: Bug report",out[[2]])
})

Try the rworkflows package in your browser

Any scripts or data that you put into this service are public.

rworkflows documentation built on May 29, 2024, 2:37 a.m.