tests/testthat/test-vcr_example.R

# EXAMPLE VCR USAGE: RUN AND DELETE ME

foo <- function() crul::ok('https://httpbin.org/get')

test_that("foo works", {
  vcr::use_cassette("testing", {
    x <- foo()
  })
  expect_true(x)
})
bennop/applepie documentation built on Dec. 19, 2021, 8:44 a.m.