tests/testthat/test-paths.R

context("File paths")

test_that("path operations work", {
  expect_identical(make_path("foo", "bar", "feef"), "foo/bar-feef.R")

  expect_error(
    find_file("not-here.R"),
    "Couldn't find the file not-here.R in any of the mock directories."
  )
})
pachamaltese/dbtest-test documentation built on Nov. 18, 2019, 12:04 a.m.