tests/testthat/test-ebirdtaxonomyversion.R

vcr::use_cassette("ebirdtaxonomyversion", {
  test_that("ebirdtaxonomyversion works correctly", {
    versions <- ebirdtaxonomyversion()
    expect_true(inherits(versions, "data.frame"))
    expect_true(inherits(versions, "tbl_df"))
    expect_equal(ncol(versions), 2)
    expect_true(all(c("authorityVer", "latest") %in% names(versions)))
  })
})
ropensci/rebird documentation built on Nov. 27, 2024, 9:47 p.m.