tests/testthat/test-create_config.R

test_that("create_config creates the expected configuration file", {
  out <- create_config("
   default:
     field: value
  ")

  expect_true(fs::file_exists(out))
  expect_equal(get_param("field")(out), "value")
})
2DegreesInvesting/r2dii.utils documentation built on Jan. 23, 2020, 1:38 a.m.