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 documentation built on Dec. 3, 2019, 11:08 p.m.