tests/testthat/test-spec-util.R

context("spec utilites")


test_that("startup", {
  stevedore:::.onLoad()
  expect_equal(.stevedore$client_data, list())
})


test_that("read missing spec is an error", {
  expect_error(swagger_spec_read("0.0.1"),
               "Invalid version 0.0.1; try one of", fixed = TRUE)
})

Try the stevedore package in your browser

Any scripts or data that you put into this service are public.

stevedore documentation built on July 26, 2023, 5:35 p.m.