test_that("nyc_wetlands returns a tibble and respects limits", { # This 'cassette' will be saved in tests/fixtures/nyc_311_test.yml vcr::use_cassette("nyc_wetlands_test", { # We use a small limit (2) to keep the recording file small results <- nyc_wetlands(limit = 2) # Assertions: What should be true? expect_s3_class(results, "tbl_df") expect_equal(nrow(results), 2) }) }) test_that("nyc_wetlands throws errors for bad inputs", { # This touches the new 'stop' lines you just added expect_error(nyc_wetlands(limit = "a string")) expect_error(nyc_wetlands(filters = "not a list")) })