tests/testthat/test-use-code-of-conduct.R

context("use_code_of_conduct")

test_that("use_code_of_conduct() creates promised file", {
  scoped_temporary_project()
  use_code_of_conduct()
  expect_proj_file("CODE_OF_CONDUCT.md")
})

Try the usethis package in your browser

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

usethis documentation built on July 4, 2019, 5:05 p.m.