Skip to content

Commit

Permalink
adding extra test for rnag
Browse files Browse the repository at this point in the history
  • Loading branch information
robbriers committed May 10, 2019
1 parent 01ef9d3 commit 775e6cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-get_rnag.r
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ test_that("specifying type for WB download returns a message", {
# retrieve data for level that does not exist
expect_message(get_rnag("GB112071065700", "WBID", type="River"))
})

test_that("downloading empty dataframe (no RNAG) returns a message", {
# retrieve data for OC without RNAG
expect_message(get_rnag("Cornwall North Coastal", "OC", startyr = 2016))
})

0 comments on commit 775e6cb

Please sign in to comment.