tests/testthat/test_from_here.R

context("Global options")

test_that("options are loaded", {
  expect_is(getOption("collateralopts"), "list")
  expect_gt(length(getOption("collateralopts")), 0)
})

test_that("options can be written and read", {
  from_here(title = "mytitle")
  expect_identical(getOption("collateralopts")$title, "mytitle")
})
ratmaster/collateral documentation built on May 24, 2019, 6:19 p.m.