tests/testthat/test_rt_queue_properties.R

context("queue/properties")

test_that("we can get the properties of a queue", {
  props <- rt_queue_properties("General")

  testthat::expect_is(props, "list")
  testthat::expect_length(props, 7)
  testthat::expect_true(props$Name == "General")
})

test_that("we throw an error on queue not found", {
  testthat::expect_error(
    rt_queue_properties("AQueueThatDoesntExist"), "No queue")
})
amoeba/rt documentation built on March 7, 2020, 10:01 a.m.