tests/testthat/test-working-directory-is-preserved.R

context('Is working directory preserved?')

test_that('Working directory is preserved', {

  example <- system.file('db/cnf.yaml', package = 'easydb')
  wd <- getwd()

  # Check after updating source
  db_update(example)
  expect_equal(wd, getwd())

  # Check after building db
  db_build(example)
  expect_equal(wd, getwd())

})
EricEdwardBryant/easydb documentation built on Feb. 15, 2021, 12:21 a.m.