tests/testthat/test-request_make.R

test_that("request_make() errors for invalid HTTP methods", {
  expect_snapshot(
    request_make(list(method = httr::GET)),
    error = TRUE
  )
  expect_snapshot(
    request_make(list(method = "PETCH")),
    error = TRUE
  )
})
r-pkgs/gargle documentation built on Sept. 3, 2023, 12:22 a.m.