tests/testthat/test-dplyr.R

context("dplyr")

with_compat <- function(compat, ...) {
  with_mock(
    `dplyr::mutate` = compat$mutate,
    `dplyr::count` = compat$count,
    `dplyr::rename` = compat$rename,
    force(...)
  )
}

with_compat(dplyr_compat, {
  testthat::test_package("dplyr")
})
krlmlr/pdlyr documentation built on May 20, 2019, 6:17 p.m.